Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Windows specs [Issue #57]

  • Loading branch information...
commit c1f3f2458c07e42c13340e8e7911223d2264674b 1 parent 7181494
@voxik authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/rspec/core/metadata_spec.rb
View
12 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 => [
Please sign in to comment.
Something went wrong with that request. Please try again.