Skip to content

Commit 2bee366

Browse files
committed
Fix references to Spree::Deprecation
1 parent 889367e commit 2bee366

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

spec/controllers/spree/api/users_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
end
4141

4242
it "updates the subscription line items" do
43-
allow(::Spree::Deprecation).to receive(:warn).with(a_string_matching(
43+
allow(::Spree.deprecator).to receive(:warn).with(a_string_matching(
4444
"Creating or updating subscriptions through #{Spree.user_class} nested attributes is deprecated"
4545
))
4646
update_user

spec/decorators/models/solidus_subscriptions/spree/user/have_many_subscriptions_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
describe "#subscriptions_attributes=" do
1212
it "throws a deprecation warning" do
13-
allow(::Spree::Deprecation).to receive(:warn)
13+
allow(::Spree.deprecator).to receive(:warn)
1414

1515
user.subscriptions_attributes = [{interval_length: 2}]
1616

17-
expect(::Spree::Deprecation)
17+
expect(::Spree.deprecator)
1818
.to have_received(:warn)
1919
.with(/Creating or updating subscriptions through #{Spree.user_class} nested attributes is deprecated/)
2020
end

0 commit comments

Comments
 (0)