mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-25 05:45:15 +00:00
Per review, fixing specs descriptions
This commit is contained in:
@@ -17,7 +17,7 @@ RSpec.describe TagRule::FilterOrderCycles do
|
||||
end
|
||||
end
|
||||
|
||||
describe "#reject_matched?" do
|
||||
describe "#tags_match?" do
|
||||
context "when the exchange is nil" do
|
||||
before do
|
||||
allow(tag_rule).to receive(:exchange_for) { nil }
|
||||
|
||||
@@ -16,7 +16,7 @@ RSpec.describe TagRule::FilterPaymentMethods do
|
||||
end
|
||||
end
|
||||
|
||||
describe "#tag_match?" do
|
||||
describe "#tags_match?" do
|
||||
context "when the payment method is nil" do
|
||||
it "returns false" do
|
||||
expect(tag_rule.tags_match?(nil)).to be false
|
||||
|
||||
@@ -14,7 +14,7 @@ RSpec.describe TagRule::FilterProducts do
|
||||
end
|
||||
end
|
||||
|
||||
describe "determining whether tags match for a given variant" do
|
||||
describe "#tags_match?" do
|
||||
let(:variant_tags) { "my_tag" }
|
||||
|
||||
context "when the variant is nil" do
|
||||
|
||||
@@ -16,7 +16,7 @@ RSpec.describe TagRule::FilterShippingMethods do
|
||||
end
|
||||
end
|
||||
|
||||
describe "#tag_match?" do
|
||||
describe "#tags_match?" do
|
||||
context "when the shipping method is nil" do
|
||||
it "returns false" do
|
||||
expect(tag_rule.tags_match?(nil)).to be false
|
||||
|
||||
Reference in New Issue
Block a user