spec/captivus/backtrace_spec.rb in captivus-0.0.3 vs spec/captivus/backtrace_spec.rb in captivus-0.0.5

- old
+ new

@@ -16,12 +16,10 @@ end end end describe 'as_json' do - before do - @object = double 'object', :backtrace => ['/Users/x.rb:1', '/Users/x.rb:2', '/Users/x.rb:3'] - end + before { @object = double 'object', :backtrace => ['/Users/x.rb:1', '/Users/x.rb:2', '/Users/x.rb:3'] } context "when the object has a backtrace" do it 'is an array of the backtrace lines as json' do new_backtrace(@object).as_json.should == [ Captivus::Backtrace::Line.new('/Users/x.rb:1').as_json, \ No newline at end of file