blob: 0a54f9d7b5b6cd390aca69b1e8e91976ce3fad4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
RSpec.describe Bundler::StubSpecification do
let(:with_bundler_stub_spec) do
gemspec = Gem::Specification.new do |s|
s.name = "gemname"
s.version = "1.0.0"
s.loaded_from = __FILE__
end
described_class.from_stub(gemspec)
end
describe "#from_stub" do
it "returns the same stub if already a Bundler::StubSpecification" do
stub = described_class.from_stub(with_bundler_stub_spec)
expect(stub).to be(with_bundler_stub_spec)
end
end
end
|