       end
 
       assert_file "web/templates/user/form.html.eex", fn file ->
-        assert file =~ "<%= text_input f, :name %>"
-        assert file =~ "<%= number_input f, :age %>"
-        assert file =~ "<%= checkbox f, :famous %>"
-        assert file =~ "<%= datetime_select f, :born_at %>"
-        assert file =~ "<%= text_input f, :secret %>"
+        assert file =~ ~s(<%= text_input f, :name, class: "form-control" %>)
+        assert file =~ ~s(<%= number_input f, :age, class: "form-control" %>)
+        assert file =~ ~s(<%= checkbox f, :famous, class: "form-control" %>)
+        assert file =~ ~s(<%= datetime_select f, :born_at, class: "form-control" %>)
+        assert file =~ ~s(<%= text_input f, :secret, class: "form-control" %>)
         refute file =~ ":nicks"
       end
 

    assert_raise Mix.Error, fn ->
      Mix.Tasks.Phoenix.Gen.Resource.run ["Admin.User", "name:string", "foo:string"]
    end
  end  
end


      assert_file migration, fn file ->
        assert file =~ "defmodule Phoenix.Repo.Migrations.CreateAdmin.User do"
        assert file =~ "create table(:users) do"
      end

      assert_file "web/controllers/admin/user_controller.ex", fn file ->
