Hi<br><br>Trying to get rcov going (has been working), but with the following context and specs it fails.<br><br>context '/account POST with invalid attendee' do<br> controller_name :account<br> setup do<br> Attendee.stub!
(:create!).and_raise(ActiveRecord::RecordInvalid.new(Attendee.new))<br> end<br><br> specify 'should raise on create' do<br> Attendee.should_receive(:create!).with({ 'name' => 'Attendee' }).and_raise(ActiveRecord::
RecordInvalid.new(Attendee.new))<br> post :create, :attendee => { :name => 'Attendee' }<br> end<br><br> specify 'should render new' do<br> controller.should_render :action => 'new'
<br> post :create<br> end<br>end<br><br>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<br><br>I tried variations on the specs and setup, but it fails when only running the should render new spec and everything else commented out.
<br><br><br>