Skip to content

Commit

Permalink
Fix warning due to calling deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
waiting-for-dev committed May 24, 2022
1 parent 449f66a commit 0bbe05b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module SolidusSubscriptions
module Spree
module Order
module FinalizeCreatesSubscriptions
def finalize!
def finalize
SolidusSubscriptions::SubscriptionGenerator.group(subscription_line_items).each do |line_items|
SolidusSubscriptions::SubscriptionGenerator.activate(line_items)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
require 'spec_helper'

RSpec.describe SolidusSubscriptions::Spree::Order::FinalizeCreatesSubscriptions do
describe '#finalize!' do
subject(:finalize) { order.finalize! }
describe '#finalize' do
subject(:finalize) { order.finalize }

let(:order) { create :order, :with_subscription_line_items }
let(:subscription_line_item) { order.subscription_line_items.last }
Expand Down

0 comments on commit 0bbe05b

Please sign in to comment.