diff options
author | Andre Arko <andre@arko.net> | 2015-05-17 12:39:34 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-05-17 13:13:43 -0700 |
commit | 7aaee7a002fd8a8d0ed03b839a6867f8d2083fb5 (patch) | |
tree | 0e54bd02178149537b307c07b6d04a11d50d86a4 /spec/bundler/dsl_spec.rb | |
parent | 858afa5cfec914bd3c9d6242d1ae49cd6c227fa1 (diff) | |
download | bundler-7aaee7a002fd8a8d0ed03b839a6867f8d2083fb5.tar.gz |
RubyGems can only validate during chdir
Since it turns out that Specification#validate only works correctly if
the cwd is the directory that contains the gemspec, we now validate at
the same time as we load the gemspec. At least then we’ve already had
to chdir, so we can validate correctly.
Diffstat (limited to 'spec/bundler/dsl_spec.rb')
-rw-r--r-- | spec/bundler/dsl_spec.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/bundler/dsl_spec.rb b/spec/bundler/dsl_spec.rb index ca97d0c6ca..bb6388eb5c 100644 --- a/spec/bundler/dsl_spec.rb +++ b/spec/bundler/dsl_spec.rb @@ -188,17 +188,4 @@ describe Bundler::Dsl do end end - describe "#gemspec" do - it "errors on invalid specs" do - File.open(bundled_app("foo.gemspec"), "w") do |f| - f.write <<-G - Gem::Specification.new do |s| - s.name = "foo" - end - G - end - expect(Bundler).to receive(:default_gemfile).and_return(bundled_app("Gemfile")) - expect { subject.gemspec }.to raise_error(Bundler::InvalidOption).with_message(/missing value for attribute version/) - end - end end |