Thursday, April 26, 2012
When i am testing its gives following error.
1) Error:
test_truth(RememberMeTest):
ArgumentError: Bad fixture argument 2 during creation of User fixture
.
.
.
.
.
.1 tests, 0 assertions, 0 failures, 1 errors
rake aborted!
Command failed with status (1): [Routes.../IR/ruby/bin/ruby -...]
(See full trace by running task with --trace
Users.yml file is....path test/fixtures/users.yml
valid_user:
id: 1
screen_name: foobar
email: foobar@gmail.com
password: foobar
remember_me:
authorization_token: 1
invalid_user:
id: 2
screen_name: time
email: tim@tim.com
password: time
remember_me:
authorization_token: 2
How we can remove this error from testing part.
Any help is appreciable
Thanks
Amir
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 comments:
Post a Comment