Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-16 Thread Zach Dennis
On Sat, Sep 13, 2008 at 2:24 PM, Damian Jones <[EMAIL PROTECTED]> wrote: > Ok I got my story to pass by changing the follwing snippet > > When /I create a product named (.*) described with (.*)/ do |name, > description| > visits new_product_path > fills_in "product[name]", :with => name > fills_

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-13 Thread Damian Jones
David, are you suggesting I should use the method you posted on Pastie, using stories or should I use Features as suggested on the Cucumber site? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://ru

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-13 Thread Damian Jones
Ok I got my story to pass by changing the follwing snippet When /I create a product named (.*) described with (.*)/ do |name, description| visits new_product_path fills_in "product[name]", :with => name fills_in "product[description]", :with => description clicks_button "Create" end don'

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-13 Thread Damian Jones
David Chelimsky wrote: > On Fri, Sep 12, 2008 at 11:37 AM, David Chelimsky <[EMAIL PROTECTED]> > wrote: >>> >> script/plugin install git://github.com/aslakhellesoy/cucumber.git >> script/generate cucumber >> rake features >> >> If you still want the gem anyway, try doing it manually: >> >> git clo

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-12 Thread Damian Jones
When ever I try to install a plugin from a git repository I just get: removing: ../vendor/plugins/cucumber/.git is this because I am on windows, or is there something I need to do? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-12 Thread David Chelimsky
On Fri, Sep 12, 2008 at 11:22 AM, Damian Jones <[EMAIL PROTECTED]> wrote: > David Chelimsky wrote: > >> To make that transition easy for you, I'd recommend either moving to >> cucumber now, or at least taking the "decoupled step definitions" >> approach within Story Runner. Check out http://pastie.

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-12 Thread Damian Jones
Phew, Thanks all for the input. Just need an outside eye to help me find a stupid mistake. I am using JEdit (on a windows box, unfortunately can't afford a Mac at the moment!) I had renamed Views/Product to Views/Products in JEdit but didn't realise it doesn't update the actual file system.

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-12 Thread David Chelimsky
On Fri, Sep 12, 2008 at 11:37 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Fri, Sep 12, 2008 at 11:22 AM, Damian Jones <[EMAIL PROTECTED]> wrote: >> David Chelimsky wrote: >> >>> To make that transition easy for you, I'd recommend either moving to >>> cucumber now, or at least taking the "de

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-12 Thread Damian Jones
David Chelimsky wrote: > To make that transition easy for you, I'd recommend either moving to > cucumber now, or at least taking the "decoupled step definitions" > approach within Story Runner. Check out http://pastie.org/271244 (with > the steps, story and output) and let me know if it makes sens

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-12 Thread David Chelimsky
On Fri, Sep 12, 2008 at 10:01 AM, Pat Maddox <[EMAIL PROTECTED]> wrote: > On Fri, Sep 12, 2008 at 10:58 AM, Damian Jones <[EMAIL PROTECTED]> wrote: >> David >> >> Are you saying this part should work: >> >> And "the page should show", "Product 1" do |text| >> response.should have_text(/#{text}/) >

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-12 Thread Pat Maddox
On Fri, Sep 12, 2008 at 10:58 AM, Damian Jones <[EMAIL PROTECTED]> wrote: > David > > Are you saying this part should work: > > And "the page should show", "Product 1" do |text| > response.should have_text(/#{text}/) > end > > because I'm getting nil for this step too. Is the request actually com

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-12 Thread Damian Jones
David Are you saying this part should work: And "the page should show", "Product 1" do |text| response.should have_text(/#{text}/) end because I'm getting nil for this step too. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-12 Thread David Chelimsky
On Fri, Sep 12, 2008 at 8:56 AM, Damian Jones <[EMAIL PROTECTED]> wrote: > This is my story: > > require File.expand_path(File.dirname(__FILE__) + "/helper") > > Story "Creating a Product", %{ >As a User >I want to create a product >So that I can collect purchase options tog

[rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-12 Thread Damian Jones
This is my story: require File.expand_path(File.dirname(__FILE__) + "/helper") Story "Creating a Product", %{ As a User I want to create a product So that I can collect purchase options together under a specific product }, :type => RailsStory do Scenario