diff --git a/core/lib/tasks/migrations/delete_prices_with_nul_amount.rake b/core/lib/tasks/migrations/delete_prices_with_nil_amount.rake similarity index 85% rename from core/lib/tasks/migrations/delete_prices_with_nul_amount.rake rename to core/lib/tasks/migrations/delete_prices_with_nil_amount.rake index 399fb6a136f..96cbaafda3b 100644 --- a/core/lib/tasks/migrations/delete_prices_with_nul_amount.rake +++ b/core/lib/tasks/migrations/delete_prices_with_nil_amount.rake @@ -2,7 +2,7 @@ namespace :solidus do namespace :migrations do - namespace :delete_prices_with_nul_amount do + namespace :delete_prices_with_nil_amount do task up: :environment do print "Deleting prices wich amount attribute is nil ... " Spree::Price.where(amount: nil).delete_all diff --git a/core/lib/tasks/upgrade.rake b/core/lib/tasks/upgrade.rake index 861232cbd0c..cb10b9cf31c 100644 --- a/core/lib/tasks/upgrade.rake +++ b/core/lib/tasks/upgrade.rake @@ -12,7 +12,7 @@ namespace :solidus do desc "Upgrade Solidus to version 3.0" task three_point_zero: [ - 'solidus:migrations:delete_prices_with_nul_amount:up', + 'solidus:migrations:delete_prices_with_nil_amount:up', ] do puts "Your Solidus install is ready for Solidus 3.0" end diff --git a/core/spec/lib/tasks/migrations/delete_prices_with_nil_amount_spec.rb b/core/spec/lib/tasks/migrations/delete_prices_with_nil_amount_spec.rb index 49d8739bcba..331fab94b89 100644 --- a/core/spec/lib/tasks/migrations/delete_prices_with_nil_amount_spec.rb +++ b/core/spec/lib/tasks/migrations/delete_prices_with_nil_amount_spec.rb @@ -2,14 +2,14 @@ require 'rails_helper' -path = Spree::Core::Engine.root.join('lib/tasks/migrations/delete_prices_with_nul_amount.rake') +path = Spree::Core::Engine.root.join('lib/tasks/migrations/delete_prices_with_nil_amount.rake') -RSpec.describe 'solidus:migrations:delete_prices_with_nul_amount' do +RSpec.describe 'solidus:migrations:delete_prices_with_nil_amount' do describe 'up' do include_context( 'rake', task_path: path, - task_name: 'solidus:migrations:delete_prices_with_nul_amount:up' + task_name: 'solidus:migrations:delete_prices_with_nil_amount:up' ) it 'removes all prices which amount column is NULL' do