Class for output should have been:
class Output
def messages
@messages ||= []
end
def puts(message)
messages message
end
end
def output
@output ||= Output.new
end
On Sunday, November 4, 2012 2:40:26 PM UTC-6, roelof wrote:
Op zondag 4 november 2012 21:25:15 UTC+1 schreef
when you call @output.messages.should include (message)
@output is nil
call (@output ||= Output.new).messages.should include (message)
On 05.11.2012, at 10:40, roelof rwob...@hotmail.com wrote:
Hello,
Im initializing that file here :
def output
@output ||= Output.new
end
in the
Op maandag 5 november 2012 15:34:05 UTC+1 schreef addagger het volgende:
when you call @output.messages.should include (message)
@output is nil
call (@output ||= Output.new).messages.should include (message)
That worked but can you explain what this does ?
Roelof
On 05.11.2012,
get instance variable @output, and when its nil assigns an object Output.new
On 05.11.2012, at 18:49, roelof rwob...@hotmail.com wrote:
Op maandag 5 november 2012 15:34:05 UTC+1 schreef addagger het volgende:
when you call @output.messages.should include (message)
@output is nil
call
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
On 4 November 2012 12:03, Roelof Wobben rwob...@hotmail.com wrote:
From: clan...@googlemail.com
Date: Sun, 4 Nov 2012 09:23:09 +
Subject: Re: [Rails] Wierd NomethodError
To: rwob...@hotmail.com
On 4 November 2012 08:08, roelof rwob...@hotmail.com wrote:
Please don't top post
Op zondag 4 november 2012 13:44:57 UTC+1 schreef Colin Law het volgende:
On 4 November 2012 12:03, Roelof Wobben rwo...@hotmail.com javascript:
wrote:
From: cla...@googlemail.com javascript:
Date: Sun, 4 Nov 2012 09:23:09 +
Subject: Re: [Rails] Wierd NomethodError
On 4 November 2012 17:45, Roelof Wobben rwob...@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
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 javascript:
wrote:
...
Message come from here.
Then he should see Welcome, Aslak
Then /^he should see (.*?)$/ do |message|
On 4 November 2012 18:46, roelof rwob...@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
Op zondag 4 november 2012 21:25:15 UTC+1 schreef Colin Law het volgende:
On 4 November 2012 18:46, roelof rwo...@hotmail.com javascript:
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
On 4 November 2012 20:40, roelof rwob...@hotmail.com wrote:
Op zondag 4 november 2012 21:25:15 UTC+1 schreef Colin Law het volgende:
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
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)
On 3 November 2012 20:43, roelof rwob...@hotmail.com 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
14 matches
Mail list logo