Skip to content

Commit

Permalink
Added Windows specs [Issue #57]
Browse files Browse the repository at this point in the history
  • Loading branch information
voxik authored and dchelimsky committed Jul 24, 2010
1 parent 3025753 commit 1705d48
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/rspec/core/metadata_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,18 @@ module Core
])
m[:example_group][:file_path].should == __FILE__
end

it "finds the first spec file in the caller array in Windows" do
m = Metadata.new
m.process(:caller => [
"foo",
"C:/path/file_spec.rb:#{__LINE__}",
"bar_spec.rb:23",
"baz"
])
m[:example_group][:file_path].should == "C:/path/file_spec.rb"
end

it "is nil if there are no spec files found", :full_backtrace => true do
m = Metadata.new
m.process(:caller => [
Expand Down

0 comments on commit 1705d48

Please sign in to comment.