diff options
author | Julian Nadeau <julian@jnadeau.ca> | 2017-05-05 10:21:55 -0400 |
---|---|---|
committer | Julian Nadeau <julian@jnadeau.ca> | 2017-05-05 10:21:55 -0400 |
commit | 3c6e7ab7e6a2686271f3dc3baa47b3ba6d9b8c6b (patch) | |
tree | 6548431813e8f9144fcde5c3d2b751c311194d07 | |
parent | c049b09f8167a9a80a9a91c56bbd72aee40c0095 (diff) | |
download | bundler-3c6e7ab7e6a2686271f3dc3baa47b3ba6d9b8c6b.tar.gz |
Try and fix the build
-rw-r--r-- | spec/bundler/stub_specification_spec.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/bundler/stub_specification_spec.rb b/spec/bundler/stub_specification_spec.rb index 2d3970a6a0..f1ddf43bb4 100644 --- a/spec/bundler/stub_specification_spec.rb +++ b/spec/bundler/stub_specification_spec.rb @@ -1,20 +1,20 @@ # frozen_string_literal: true require "spec_helper" -if Bundler.rubygems.provides?(">= 2.1") - RSpec.describe Bundler::StubSpecification do - let(:gemspec) do - Gem::Specification.new do |s| - s.name = "gemname" - s.version = "1.0.0" - s.loaded_from = __FILE__ - end +RSpec.describe Bundler::StubSpecification do + let(:gemspec) do + Gem::Specification.new do |s| + s.name = "gemname" + s.version = "1.0.0" + s.loaded_from = __FILE__ end + end - let(:with_bundler_stub_spec) do - described_class.from_stub(gemspec) - end + let(:with_bundler_stub_spec) do + described_class.from_stub(gemspec) + end + if Bundler.rubygems.provides?(">= 2.1") describe "#from_stub" do it "returns the same stub if already a Bundler::StubSpecification" do stub = described_class.from_stub(with_bundler_stub_spec) |