Scott Taylor
2007-Oct-23 15:34 UTC
[rspec-users] Running rails specs outside of the normal project tree
I want to create a spec/regressions directory with various regressions (for my rails project). I tried the following: describe LoginController, "regression for user creation when steves_sister does not exist", :behavior_type => :controller do controller_name :login before :each do @params = { "commit"=>"Create Account", "account"=> { [snip] end But I got this error: 1) NoMethodError in ''LoginController regression for user creation when steves_sister does not exist should not raise an error'' undefined method `controller_name'' for #<#<Class:0x31f21f8>:0x31d7524> ./spec/regressions/ 2007_09_01_login_controller_error_without_steves_sister_being_present_sp ec.rb:36: ./script/spec:4: and do so... What am I doing wrong? Scott
David Chelimsky
2007-Oct-23 16:03 UTC
[rspec-users] Running rails specs outside of the normal project tree
On 10/23/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > I want to create a spec/regressions directory with various > regressions (for my rails project). I tried the following: > > describe LoginController, "regression for user creation when > steves_sister does not exist", :behavior_type => :controller do > controller_name :login > > before :each do > @params = { > "commit"=>"Create Account", > "account"=> { > > [snip] > end > > But I got this error: > > 1) > NoMethodError in ''LoginController regression for user creation when > steves_sister does not exist should not raise an error'' > undefined method `controller_name'' for #<#<Class:0x31f21f8>:0x31d7524> > ./spec/regressions/ > 2007_09_01_login_controller_error_without_steves_sister_being_present_sp > ec.rb:36: > ./script/spec:4: > > and do so... > > What am I doing wrong?It''s the id (not as in identifier) of steve''s sister saying that she does in fact exist.
David Chelimsky
2007-Oct-23 16:10 UTC
[rspec-users] Running rails specs outside of the normal project tree
On 10/23/07, David Chelimsky <dchelimsky at gmail.com> wrote:> On 10/23/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > > > > I want to create a spec/regressions directory with various > > regressions (for my rails project). I tried the following: > > > > describe LoginController, "regression for user creation when > > steves_sister does not exist", :behavior_type => :controller do > > controller_name :login > > > > before :each do > > @params = { > > "commit"=>"Create Account", > > "account"=> { > > > > [snip] > > end > > > > But I got this error: > > > > 1) > > NoMethodError in ''LoginController regression for user creation when > > steves_sister does not exist should not raise an error'' > > undefined method `controller_name'' for #<#<Class:0x31f21f8>:0x31d7524> > > ./spec/regressions/ > > 2007_09_01_login_controller_error_without_steves_sister_being_present_sp > > ec.rb:36: > > ./script/spec:4: > > > > and do so... > > > > What am I doing wrong? > > It''s the id (not as in identifier) of steve''s sister saying that she > does in fact exist.Seriously now - what revision of rspec?
Scott Taylor
2007-Oct-23 16:57 UTC
[rspec-users] Running rails specs outside of the normal project tree
On Oct 23, 2007, at 12:10 PM, David Chelimsky wrote:> On 10/23/07, David Chelimsky <dchelimsky at gmail.com> wrote: >> On 10/23/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: >>> >>> I want to create a spec/regressions directory with various >>> regressions (for my rails project). I tried the following: >>> >>> describe LoginController, "regression for user creation when >>> steves_sister does not exist", :behavior_type => :controller do >>> controller_name :login >>> >>> before :each do >>> @params = { >>> "commit"=>"Create Account", >>> "account"=> { >>> >>> [snip] >>> end >>> >>> But I got this error: >>> >>> 1) >>> NoMethodError in ''LoginController regression for user creation when >>> steves_sister does not exist should not raise an error'' >>> undefined method `controller_name'' for #<#<Class:0x31f21f8>: >>> 0x31d7524> >>> ./spec/regressions/ >>> 2007_09_01_login_controller_error_without_steves_sister_being_presen >>> t_sp >>> ec.rb:36: >>> ./script/spec:4: >>> >>> and do so... >>> >>> What am I doing wrong? >> >> It''s the id (not as in identifier) of steve''s sister saying that she >> does in fact exist. > > Seriously now - what revision of rspec?Running on HEAD, and just updated w/ script/generate rspec Scott
David Chelimsky
2007-Oct-23 17:15 UTC
[rspec-users] Running rails specs outside of the normal project tree
LOLOLOLOL. You forgot the "u": behaviour_type :) On 10/23/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > On Oct 23, 2007, at 12:10 PM, David Chelimsky wrote: > > > On 10/23/07, David Chelimsky <dchelimsky at gmail.com> wrote: > >> On 10/23/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > >>> > >>> I want to create a spec/regressions directory with various > >>> regressions (for my rails project). I tried the following: > >>> > >>> describe LoginController, "regression for user creation when > >>> steves_sister does not exist", :behavior_type => :controller do > >>> controller_name :login > >>> > >>> before :each do > >>> @params = { > >>> "commit"=>"Create Account", > >>> "account"=> { > >>> > >>> [snip] > >>> end > >>> > >>> But I got this error: > >>> > >>> 1) > >>> NoMethodError in ''LoginController regression for user creation when > >>> steves_sister does not exist should not raise an error'' > >>> undefined method `controller_name'' for #<#<Class:0x31f21f8>: > >>> 0x31d7524> > >>> ./spec/regressions/ > >>> 2007_09_01_login_controller_error_without_steves_sister_being_presen > >>> t_sp > >>> ec.rb:36: > >>> ./script/spec:4: > >>> > >>> and do so... > >>> > >>> What am I doing wrong? > >> > >> It''s the id (not as in identifier) of steve''s sister saying that she > >> does in fact exist. > > > > Seriously now - what revision of rspec? > > Running on HEAD, and just updated w/ script/generate rspec > > Scott > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Scott Taylor
2007-Oct-23 17:22 UTC
[rspec-users] Running rails specs outside of the normal project tree
On Oct 23, 2007, at 1:15 PM, David Chelimsky wrote:> LOLOLOLOL. > > You forgot the "u": > > behaviour_type > > :) >Ouch. Wish I was British. Ha. Thanks, David. Scott
Scott Taylor
2007-Oct-23 17:23 UTC
[rspec-users] Running rails specs outside of the normal project tree
On Oct 23, 2007, at 1:15 PM, David Chelimsky wrote:> LOLOLOLOL. > > You forgot the "u": > > behaviour_type > > :)Looks like I need to submit a patch! Haven''t done that in a while. Scott
David Chelimsky
2007-Oct-23 17:32 UTC
[rspec-users] Running rails specs outside of the normal project tree
On 10/23/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> On Oct 23, 2007, at 1:15 PM, David Chelimsky wrote: > > > LOLOLOLOL. > > > > You forgot the "u": > > > > behaviour_type > > > > :) > > Looks like I need to submit a patch! Haven''t done that in a while.http://rubyforge.org/tracker/index.php?func=detail&aid=14989&group_id=797&atid=3152
Scott Taylor
2007-Oct-23 17:36 UTC
[rspec-users] Running rails specs outside of the normal project tree
On Oct 23, 2007, at 1:32 PM, David Chelimsky wrote:> On 10/23/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: >> On Oct 23, 2007, at 1:15 PM, David Chelimsky wrote: >> >>> LOLOLOLOL. >>> >>> You forgot the "u": >>> >>> behaviour_type >>> >>> :) >> >> Looks like I need to submit a patch! Haven''t done that in a while. > > http://rubyforge.org/tracker/index.php? > func=detail&aid=14989&group_id=797&atid=3152Is that a feature request? Rubyforge is giving me some problems at the moment: Error ArtifactType: Invalid ArtifactTypeID That''s what hitting the above link shows. Scott
David Chelimsky
2007-Oct-23 17:45 UTC
[rspec-users] Running rails specs outside of the normal project tree
On 10/23/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > On Oct 23, 2007, at 1:32 PM, David Chelimsky wrote: > > > On 10/23/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > >> On Oct 23, 2007, at 1:15 PM, David Chelimsky wrote: > >> > >>> LOLOLOLOL. > >>> > >>> You forgot the "u": > >>> > >>> behaviour_type > >>> > >>> :) > >> > >> Looks like I need to submit a patch! Haven''t done that in a while. > > > > http://rubyforge.org/tracker/index.php? > > func=detail&aid=14989&group_id=797&atid=3152 > > Is that a feature request? Rubyforge is giving me some problems at > the moment: > > Error > > ArtifactType: Invalid ArtifactTypeID > > That''s what hitting the above link shows.That''s your email splitting the link into two lines. Yes, it''s a feature request.