Fix simepl rubocop issues

This commit is contained in:
Luis Ramos
2020-08-06 10:23:08 +01:00
parent 0b053c18af
commit e89eb8f76c
4 changed files with 21 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
module Spree
@@ -102,7 +104,7 @@ module Spree
end
it 'finds a count_on_hand for a variant' do
subject.count_on_hand(variant).should eq 10
subject.count_on_hand(variant).should eq 10
end
it 'finds determines if you a variant is backorderable' do
@@ -128,8 +130,8 @@ module Spree
end
it 'can be deactivated' do
create(:stock_location, :active => true)
create(:stock_location, :active => false)
create(:stock_location, active: true)
create(:stock_location, active: false)
Spree::StockLocation.active.count.should eq 1
end

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
describe Spree::StockMovement do