public
Description: Behaviour Driven Development framework for Ruby
Homepage: http://rspec.info
Clone URL: git://github.com/dchelimsky/rspec.git
Click here to lend your support to: rspec and make a donation at www.pledgie.com !
Pass the full path to the spec so that the example group
factory selects the proper example group class
Fixes LH #453
pat-maddox (author)
Mon Aug 11 13:03:07 -0700 2008
commit  74d2db65d2a325020b62dd70d13a1dca4c7d1b69
tree    051c9ef95d04371c1fc6257353f3e0464a0dc6ca
parent  2dd5c1bec6b8a9507efd28badba5ad5fab4309dc
...
23
24
25
26
 
27
28
29
...
84
85
86
87
88
 
...
23
24
25
 
26
27
28
29
...
84
85
86
 
87
88
0
@@ -23,7 +23,7 @@ module Spec
0
         raise ArgumentError if args.empty?
0
         raise ArgumentError unless block
0
         args << {} unless Hash === args.last
0
-        args.last[:spec_path] = caller(0)[1]
0
+        args.last[:spec_path] = File.expand_path(caller(0)[1])
0
         Spec::Example::ExampleGroupFactory.create_example_group(*args, &block)
0
       end
0
       alias :context :describe
0
@@ -84,4 +84,4 @@ module Spec
0
   end
0
 end
0
 
0
-include Spec::Extensions::Main
0
\ No newline at end of file
0
+include Spec::Extensions::Main

Comments