James Byrne wrote:
I have gotten past this somehow. The only thing that I think may have
influenced this is manually preparing the test database. However, now I
have a different problem.
Here is the same step definition:
When /user named "(.*)" is an administrator/ do |name|
my_user = User.find_by_username!(name)
puts my_user.administrator.to_s
my_user.administrator
end
This produces this output in a cucumber run:
false
And the user named "newuser" is an administrator #
features/app/models/users/step_definitions/user_steps.rb:24
Notice the value reported from the puts statement. Yet, this feature
step passes. What am I doing wrong?
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users