spec/integration_spec.rb in turnip-1.1.0 vs spec/integration_spec.rb in turnip-1.2.0
- old
+ new
@@ -15,6 +15,23 @@
end
it "includes features in backtraces" do
@result.should include('examples/errors.feature:5:in `raise error')
end
+
+ it "includes the right step name when steps call steps" do
+ @result.should include("No such step: 'this is an unimplemented step'")
+ end
+
+ it 'prints line numbers of pending/failure scenario' do
+ @result.should include('./examples/pending.feature:3')
+ @result.should include('./examples/errors.feature:4')
+ end
+
+ it 'conforms to line-number option' do
+ @result.should include('rspec ./examples/errors.feature:4')
+ @result.should include('rspec ./examples/errors.feature:6')
+ result_with_line_number = %x(rspec -fs ./examples/errors.feature:4)
+ result_with_line_number.should include('rspec ./examples/errors.feature:4')
+ result_with_line_number.should_not include('rspec ./examples/errors.feature:6')
+ end
end