diff options
-rw-r--r-- | spec/bundler/bundler/rubygems_integration_spec.rb | 6 | ||||
-rw-r--r-- | spec/bundler/commands/exec_spec.rb | 3 |
2 files changed, 5 insertions, 4 deletions
@@ -11,14 +11,14 @@ RSpec.describe Bundler::RubygemsIntegration do end subject { Bundler.rubygems.validate(spec) } - it "validates with packaging mode disabled" do - expect(spec).to receive(:validate).with(false) subject end context "with an invalid spec" do before do - expect(spec).to receive(:validate).with(false). and_raise(Gem::InvalidSpecificationException.new("TODO is not an author")) end @@ -674,6 +674,7 @@ RSpec.describe "bundle exec" do s.version = '1.0' s.summary = 'TODO: Add summary' s.authors = 'Me' end G end @@ -686,7 +687,7 @@ RSpec.describe "bundle exec" do bundle "exec irb", raise_on_error: false expect(err).to match("The gemspec at #{lib_path("foo-1.0").join("foo.gemspec")} is not valid") - expect(err).to match('"TODO" is not a summary') end end |