The only thing I can think of is that output is not created. But that cannot be the reason because there is a function create which contains Ouput.new which is the same as Output.create. Roelof
Op zaterdag 3 november 2012 21:59:16 UTC+1 schreef Colin Law het volgende: > On 3 November 2012 20:43, roelof <[email protected] <javascript:>> > wrote: > > Hello, > > > > I have my source here : https://github.com/roelof1967/tamara > > > > When I do cucumber I get this error message : > > Then he should see "Welcome, Aslak" # > > features/step_definitions/login_steps.rb:27 > > undefined method `messages' for nil:NilClass (NoMethodError) > > ./features/step_definitions/login_steps.rb:28:in `/^he should see > > "(.*?)"$/' > > features/login.feature:6:in `Then he should see "Welcome, Aslak"' > > > > Which I find wierd because I have a method messages made in my class > Output. > > You have the messages method, but the error is saying that the object > you are calling it on is nil. So on the line that is calling > something.messages then the something is nil. You have to work out > why it is nil. > > Colin > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/wJzgQSszf4AJ. For more options, visit https://groups.google.com/groups/opt_out.

