spec/results/unpatched_gem_spec.rb in bundler-audit-0.8.0 vs spec/results/unpatched_gem_spec.rb in bundler-audit-0.9.0
- old
+ new
@@ -87,13 +87,14 @@
describe "#to_h" do
subject { super().to_h }
let(:advisory_hash) { {id: advisory.id} }
+
before { expect(advisory).to receive(:to_h).and_return(advisory_hash) }
- it "must inclide type: :unpatched_gem" do
+ it "must include type: :unpatched_gem" do
expect(subject[:type]).to be :unpatched_gem
end
it "must include a :gem key containing a Hash" do
expect(subject[:gem]).to be_kind_of(Hash)
@@ -108,10 +109,9 @@
expect(subject[:gem][:version]).to be == gem.version
end
end
it "must include a :advisory key containing a Hash of the advisory" do
-
expect(subject[:advisory]).to be == advisory_hash
end
end
describe "#to_s" do