Sha256: 47de17d6347b7e1708f6d2b27e4b4c3008957059b3b727c1e9be793b39927618
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
require 'spec_helper' describe 'The CLI', :type => :integration do before do @result = %x(rspec -fd examples/*.feature) end it "shows the correct description" do @result.should include('A simple feature') @result.should include('is a simple feature') end it "prints out failures and successes" do @result.should include('38 examples, 3 failures, 5 pending') 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 -fd ./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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
turnip-1.2.2 | spec/integration_spec.rb |