Re: [rspec-users] Controller Testing + Devise = boom (undefined @controller, request)

2011-02-06 Thread Rich Price
I am assuming that the get and response lines are not commented out in your actual test! Does your code consist ONLY of the lines below? I think you need to proceed the "it" line with a "describe" line. for example: describe "my test" do it "" do *put other code here* end e

[rspec-users] Problem with before(:all)

2011-01-21 Thread Rich Price
ailure/Error: Serial.write(grid01,"testtemp01") NameError: undefined local variable or method `grid01' for # # ./serialgrid.rb:20 Finished in 0.00698 seconds 1 example, 1 failure rich@richlaptop2:~/Documents/fakemap/rspec$

Re: [rspec-users] No command 'rspec' found

2011-01-21 Thread Rich Price
Make sure that version 1 of rspec is NOT installed! Here is my path: /home/rich/.gem/ruby/1.8:/var/lib/gems/1.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin On 01/20/2011 03:51 PM, wolf volpi wrote: I installed rspec on Linux Ubuntu 10.04, but no command 'rspec' is found. Perh

Re: [rspec-users] Sudden rspec problem

2011-01-16 Thread Rich Price
OK - I found the problem. While correcting the spelling of a class name in fmutil.rb I lost the leading capital letter. Oh! The embarrassment! Thanks. On 01/16/2011 06:48 PM, Rich Price wrote: The first two lines are: require '../code/fmutil.rb' require '../code/fmgrid.rb'

Re: [rspec-users] Sudden rspec problem

2011-01-16 Thread Rich Price
The first two lines are: require '../code/fmutil.rb' require '../code/fmgrid.rb' I had not updated any gems between the test that worked and the one that produced these results. On 01/16/2011 05:51 PM, Mike Mazur wrote: Hi, On Mon, Jan 17, 2011 at 06:47, Rich Price

[rspec-users] Sudden rspec problem

2011-01-16 Thread Rich Price
.4.0/lib/rspec/core/runner.rb:10:in `autorun' from /var/lib/gems/1.8/rspec:19 rich@richlaptop2:~/Documents/fakemap/rspec$ This is for code that was ENTIRELY unchanged from a previous successful test. Now any use that I make of rspec produces these errors! Has anyone seen behavior like this