search for: example_runner

Displaying 3 results from an estimated 3 matches for "example_runner".

2007 Oct 17
16
rspec causing validates_presence_of to validate twice?
I had posted this on the regular Rails list, but upon trying this in script/console, it seems like the behavior only exists when running rspec. I''m getting some weird behavior in one of my models. I have a model defined something like this class User < ActiveRecord::Base attr_accessor :password validates_presence_of :password end If I validate the model without specifying a
2007 Nov 09
9
fixture_file_upload and edge rspec?
Hi all, I had some specs that were using fixture_file_upload that were passing just fine. Then I froze edge rails to get some 2.0 functionality, then a I upgraded to trunk rspec to deal with uninitialized constant ActionView::Helpers::JavaScriptMacrosHelper After a couple other of tribulations, I have now gotten down to just a couple of not passing specs, all using the fixture_file_upload.
2007 Nov 20
3
How to test views with Nested Resources and Partials
..._example.rb:129:in `render'' spec/views/line_items/edit.haml_spec.rb:57 vendor/plugins/rspec/lib/spec/example/example_methods.rb:14:in `instance_eval'' vendor/plugins/rspec/lib/spec/example/example_methods.rb:14:in `run'' vendor/plugins/rspec/lib/spec/example/example_runner.rb:57:in `run_example'' vendor/plugins/rspec/lib/spec/example/example_runner.rb:23:in `run'' /usr/local/lib/ruby/1.8/timeout.rb:48:in `timeout'' vendor/plugins/rspec/lib/spec/example/example_runner.rb:21:in `run'' vendor/plugins/rspec/lib/spec/example...