On 4 November 2012 12:03, Roelof Wobben <rwo...@hotmail.com> wrote:
>
>
>> From: cla...@googlemail.com
>> Date: Sun, 4 Nov 2012 09:23:09 +0000
>> Subject: Re: [Rails] Wierd NomethodError
>> To: rwo...@hotmail.com
>
>>
>> On 4 November 2012 08:08, roelof <rwo...@hotmail.com> wrote:
>>
>> Please don't top post, it makes it difficult to follow the thread.
>> Insert your replies at appropriate points in previous message.
>> Thanks.
>>
>> > 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.
>>
>> It might help if you were to show us the bit of code generating the
>> error. We are not telepathic. At least I am not. Look carefully at
>> the error message to find the relevant code.
>
>
> The error message can be found here : https://gist.github.com/4008123
> And the relevant code can be found here :
> https://github.com/roelof1967/tamara/blob/master/features/step_definitions/login_steps.rb
That is a different error message to the one you originally posted.
What is the line
messages << message
supposed to do. What is the variable messages?
Have a look at the Rails Guide on debugging, it will show you
techniques that you can use to debug your code and work out what is
going wrong.
Roelof
On 4 November 2012 18:46, roelof <rwo...@hotmail.com> wrote:
>
> Op zondag 4 november 2012 18:52:46 UTC+1 schreef Colin Law het volgende:
>>
>> On 4 November 2012 17:45, Roelof Wobben <rwo...@hotmail.com> wrote:
>> > ...
>> > Message come from here.
>> >
>> > Then he should see "Welcome, Aslak"
>> >
>> > Then /^he should see "(.*?)"$/ do |message|
>> > @output.messages.should include (message)
>> > end
>>
>> I have no idea what you are saying now. Is this a different problem?
>> If so then again post the error message and the relevant code. Just
>> put the code inline here unless it is long, it is easier to comment
>> here than if you have put it somewhere else. You only need to post
>> the relevant 10 or 20 lines.
>>
>> Colin
>
>
> No I try to answer where message is coming from.
> Message is as I understand from the step-definition and should include the
> text "Welcome asLak"
Sorry, you still have not explained the problem. Explain what is
happening,
what should be happening
, and show us the code that should
do what you expect.
--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/A0gcSBsTn0sJ.
For more options, visit https://groups.google.com/groups/opt_out.
when you call @output.messages.should include (message)@output is nilcall (@output ||= Output.new).messages.should include (message)
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/_OozA0jfEqIJ.
Hello,Im initializing that file here :def output@output ||= Output.newendin the class Output.