lib/rspec_examples.rb in rspex-0.0.1 vs lib/rspec_examples.rb in rspex-0.0.2
- old
+ new
@@ -1,6 +1,6 @@
class RSpecExamples
- SPEC_PATH = "#{Gem.path[0]}/gems/*/spec/**/*_spec.rb"
+ SPEC_PATH = "#{Gem.path[1]}/gems/*/spec/**/*_spec.rb"
attr_reader :examples, :size
def initialize(spec_path=SPEC_PATH)
@examples = Dir.glob(spec_path).map{|path| Example.new(path)}
end
\ No newline at end of file