Skip to content

Commit

Permalink
Fix flaky variant_override spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Yorkley committed Jul 7, 2020
1 parent 3d955a9 commit 6e7d2f0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/models/variant_override_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@
expect(VariantOverride.indexed(hub2)).to eq( variant => vo2 )
end

it "does not include overrides for soft-deleted variants" do
variant.delete
expect(VariantOverride.indexed(hub1)).to eq( nil => vo1 )
context "with soft-deleted variants" do
before { variant.delete }

it "does not include overrides for soft-deleted variants" do
expect(VariantOverride.indexed(hub1)).to eq( nil => vo1 )
end
end
end
end
Expand Down

0 comments on commit 6e7d2f0

Please sign in to comment.