Sha256: 762ca58499c2476a2845a82177c7a6349341fcca7f84b1f22b77814e5a8d144a
Contents?: true
Size: 1013 Bytes
Versions: 4
Compression:
Stored size: 1013 Bytes
Contents
Feature: line number option As an Rspec user I want to run one example identified by the line number Scenario: standard examples Given a file named "example_spec.rb" with: """ describe 9 do it "should be > 8" do 9.should be > 8 end it "should be < 10" do 9.should be < 10 end end """ When I run "spec example_spec.rb --line 3 --format doc" Then the stdout should match "1 example, 0 failures" Then the stdout should match "should be > 8" But the stdout should not match "should be < 10" Scenario: one liner Given a file named "example_spec.rb" with: """ describe 9 do it { should be > 8 } it { should be < 10 } end """ When I run "spec example_spec.rb --line 3 --format doc" Then the stdout should match "1 example, 0 failures" Then the stdout should match "should be > 8" But the stdout should not match "should be < 10"
Version data entries
4 entries across 4 versions & 1 rubygems