search for: item_spec

Displaying 4 results from an estimated 4 matches for "item_spec".

2007 Oct 08
17
(no subject)
Just ran svn up this morning, and got this (after running ./script/ generate rspec) escher: ./script/spec spec/models/item_spec.rb Finished in 8.0e-06 seconds 0 examples, 0 failures ./script/spec:4:in `run'': wrong number of arguments (3 for 1) (ArgumentError) from ./script/spec:4 Using rails 1.2.3, rspec trunk, on Mac OS X.4.9. Any ideas, or is this a bug in refactoring/with rspec? Scott
2008 Mar 18
6
Problem with mocking a simple has_many relationship
...d_receive(:count).at_least(:once).and_return(1) @item.should have(0).errors_on(:images) end end Obviously i''m doing something wrong cause this doesn''t work: 1) ''Item should have at least one image'' FAILED expected 0 errors on :images, got 1 ./spec/models/item_spec.rb:60: script/spec:4: Finished in 0.341594 seconds 10 examples, 1 failure, 5 pending (ignore the rest) Any help would be more than welcome :) -- Posted via http://www.ruby-forum.com/.
2007 Oct 08
0
(no subject)
Just ran svn up this morning, and got this (after running ./script/ generate rspec) escher: ./script/spec spec/models/item_spec.rb Finished in 8.0e-06 seconds 0 examples, 0 failures ./script/spec:4:in `run'': wrong number of arguments (3 for 1) (ArgumentError) from ./script/spec:4 Using rails 1.2.3, rspec trunk, on Mac OS X.4.9. Any ideas, or is this a bug in refactoring/with rspec? Scott
2006 Aug 24
0
"rake spec" doesn''t work after upgrade to 0.6.1
Hi: spec <files> works though. Stack trace: rake spec (in /home/jhughes/work/media-catalog/trunk) /usr/bin/ruby1.8 -Ilib /usr/lib/ruby/gems/1.8/gems/rspec-0.6.1/bin/spec "spec/models/category_spec.rb" "spec/models/item_spec.rb" /usr/lib/ruby/gems/1.8/gems/rspec-0.6.1/lib/spec.rb:1:in `require'': no such file to load -- spec/version (LoadError) from /usr/lib/ruby/gems/1.8/gems/rspec-0.6.1/lib/spec.rb:1 from /usr/lib/ruby/gems/1.8/gems/rspec-0.6.1/bin/spec:2 /usr/bin/ruby1.8 -Ilib /usr/lib/ruby/gems/1.8/g...