         |> Rapport.add_page(@hello_template, %{hello: "Hello world"})
 
       assert length(report.pages) == 1
+      assert List.first(report.pages).fields.hello == "Hello world"
     end
 
     test "add two pages" do

    end
  end

  ### set_field
  describe "set_field/2" do
    test "set_field" do
      html_report =
        Rapport.new
        |> Rapport.add_page(@hello_template, %{hello: "Hello World!"})
        |> Rapport.generate_html

      assert html_report =~ "Hello World!"
    end

    test "set_field two times" do

      assert html_report =~ "Inline template"
    end

    test "all allowed paper sizes" do
      all = [:A4, :A3, :A5, :half_letter, :letter, :legal, :junior_legal, :ledger]
      Enum.each(all, fn(paper_size) ->
        assert Rapport.new("Title", paper_size, :portrait).paper_size == paper_size
      end)
    end
  end

