[rspec-devel] [ rspec-Bugs-5564 ] "ruby spec_file.rb" doesn't work the same way as "spec spec_file.rb"

noreply at rubyforge.org noreply at rubyforge.org
Sat Oct 21 10:34:49 EDT 2006


Bugs item #5564, was opened at 2006-08-29 21:42
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=5564&group_id=797

Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
>Assigned to: Aslak Hellesoy (aslak_hellesoy)
>Summary: "ruby spec_file.rb" doesn't work the same way as "spec spec_file.rb"

Initial Comment:
Given the following spec file:
=============================
require 'spec'

context 'first context' do
  specify 'first spec' do
  end
  specify 'second spec' do
  end  
end

context 'second context' do
  specify 'third spec' do
  end
  specify 'fourth spec' do
  end  
  specify 'fifth spec' do
  end  
end
=============================
Running the spec command we get the following output:
=============================
$ spec sample_spec.rb -fs

first context
- first spec
- second spec

second context
- third spec
- fourth spec
- fifth spec

Finished in 0.00197 seconds

5 specifications, 0 failures
=============================
Running the ruby command we get the following output:
=============================
$ ruby sample_spec.rb -fs

first context
- first spec
- second spec

Finished in 0.000794 seconds

2 specifications, 0 failures

first context
- first spec
- second spec

second context
- third spec
- fourth spec
- fifth spec

Finished in 0.001769 seconds

7 specifications, 0 failures


----------------------------------------------------------------------

>Comment By: Aslak Hellesoy (aslak_hellesoy)
Date: 2006-10-21 10:34

Message:
Fixed. Will be in 0.7.0

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=5564&group_id=797


More information about the rspec-devel mailing list