[rspec-users] rcov seg fault

Dylan Egan dylanegan at gmail.com
Tue Jan 9 05:37:10 EST 2007


Hi

Trying to get rcov going (has been working), but with the following context
and specs it fails.

context '/account POST with invalid attendee' do
  controller_name :account
  setup do
    Attendee.stub!(:create!).and_raise(ActiveRecord::RecordInvalid.new(
Attendee.new))
  end

  specify 'should raise on create' do
    Attendee.should_receive(:create!).with({ 'name' => 'Attendee'
}).and_raise(ActiveRecord::RecordInvalid.new(Attendee.new))
    post :create, :attendee => { :name => 'Attendee' }
  end

  specify 'should render new' do
    controller.should_render :action => 'new'
    post :create
  end
end

All I get is /usr/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/mocks/error_generator.rb:53:
[BUG] Segmentation fault

I tried variations on the specs and setup, but it fails when only running
the should render new spec and everything else commented out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070109/039ad785/attachment.html 


More information about the rspec-users mailing list