lib/rspec_examples.rb in rspex-0.0.4 vs lib/rspec_examples.rb in rspex-0.0.5

- old
+ new

@@ -1,8 +1,8 @@ require 'pathname' class RSpecExamples - SPEC_PATH = "#{Gem.path[1]}/gems/*/spec/**/*_spec.rb" + SPEC_PATH = "#{Gem.default_dir}/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