File tree Expand file tree Collapse file tree
decorators/models/solidus_subscriptions/spree/user Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments