Skip to content

Commit

Permalink
Fix typo: nul -> nil
Browse files Browse the repository at this point in the history
  • Loading branch information
waiting-for-dev committed Apr 12, 2021
1 parent 286d0e3 commit 2982058
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/lib/tasks/upgrade.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2982058

Please sign in to comment.