spec/helpers/generator.rb in ore-0.8.1 vs spec/helpers/generator.rb in ore-0.9.0

- old
+ new

@@ -14,11 +14,13 @@ [path], options.merge(:quiet => true) ) @generator.invoke_all - @path = Pathname.new(path) - @gemspec = YAML.load_file(@path.join('gemspec.yml')) + @path = Pathname.new(path) + @gemspec = Dir.chdir(@path) do + Gem::Specification.load(@generator.generated_files['[name].gemspec']) + end end def rspec_opts @path.join('.rspec').read end