Permalink
Browse files

Added Windows specs [Issue #57]

  • Loading branch information...
1 parent 7181494 commit c1f3f2458c07e42c13340e8e7911223d2264674b @voxik committed Jul 5, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/rspec/core/metadata_spec.rb
@@ -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 => [

0 comments on commit c1f3f24

Please sign in to comment.