Ed Howland
2008-Jun-02 18:06 UTC
[rspec-users] get method under 1.1.4 in Stories is undefined
HI, After I upgraded to RSpec 1.1.4 (from git), my stories all failed. I was using Webrat and the first thing I noticed was the ''visits'' method was gone. I then backtracked to just using ''get'' and got the same undefined method exception. I confirmed it was still working in 1.1.3 Eventually, I got it to work doing this: in my first Given: @app = ActionController::Integration::Session.new in some When @app.get page or using Webrat: @aop.visits "/" @app.fills_in field, :with => value Anyone els seen this? Why is creating the AIS needed? Thanks Ed . -- Ed Howland http://greenprogrammer.blogspot.com
Pat Maddox
2008-Jun-02 18:10 UTC
[rspec-users] get method under 1.1.4 in Stories is undefined
On Mon, Jun 2, 2008 at 11:06 AM, Ed Howland <ed.howland at gmail.com> wrote:> HI, > > After I upgraded to RSpec 1.1.4 (from git), my stories all failed. I > was using Webrat and the first thing I noticed was the ''visits'' method > was gone. I then backtracked to just using ''get'' and got the same > undefined method exception. I confirmed it was still working in 1.1.3 > > Eventually, I got it to work doing this: > > in my first Given: > @app = ActionController::Integration::Session.new > > in some When > @app.get page > > or using Webrat: > @aop.visits "/" > @app.fills_in field, :with => value > > Anyone els seen this? Why is creating the AIS needed?Are you running the stories as RailsStory? Seems like you might be missing that. Though it is odd that it worked before, but not now. Can you please paste all the relevant story code? (the step definitions and the line that runs the story) Pat
Ed Howland
2008-Jun-02 18:55 UTC
[rspec-users] get method under 1.1.4 in Stories is undefined
Yes, that was it. Thanks Ed On Mon, Jun 2, 2008 at 1:10 PM, Pat Maddox <pergesu at gmail.com> wrote:> On Mon, Jun 2, 2008 at 11:06 AM, Ed Howland <ed.howland at gmail.com> wrote: >> HI, >> >> After I upgraded to RSpec 1.1.4 (from git), my stories all failed. I >> was using Webrat and the first thing I noticed was the ''visits'' method >> was gone. I then backtracked to just using ''get'' and got the same >> uandefined method exception. I confirmed it was still working in 1.1.3 >> >> Eventually, I got it to work doing this: >> >> in my first Given: >> @app = ActionController::Integration::Session.new >> >> in some When >> @app.get page >> >> or using Webrat: >> @aop.visits "/" >> @app.fills_in field, :with => value >> >> Anyone els seen this? Why is creating the AIS needed? > > Are you running the stories as RailsStory? Seems like you might be > missing that. Though it is odd that it worked before, but not now. > Can you please paste all the relevant story code? (the step > definitions and the line that runs the story) > > Pat > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Ed Howland http://greenprogrammer.blogspot.com "The information transmitted is intended only for the person or entity to which it is addressed and may contain proprietary, confidential and/or legally privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers."