Displaying 1 result from an estimated 1 matches for "test_object_creation".
2012 Mar 14
0
How do I create a new object in testing to test a controller?
...ost :create, post: { email: "user-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org" }
assert_equal "ok, it exists", flash.now[:notice]
end
end
And this is the execution flow:
> $ bundle exec rake db:test:prepare
$ ruby -Itest test/functional/sessions_controller_test.rb -n
test_object_creation
Run options: -n test_object_creation
# Running tests:
F
Finished tests in 0.235903s, 4.2390 tests/s, 12.7171 assertions/s.
1) Failure:
test_object_creation(SessionsControllerTest)
[test/functional/sessions_controller_test.rb:13]:
<"ok, it exists"> expected but was
<"i...