Skip to content

Commit

Permalink
Merge pull request solidusio#613 from bsodmike/fix/remove_duplicate_l…
Browse files Browse the repository at this point in the history
…et_block_in_shipment_spec

Fix: Remove duplicate let block to create a stock location factory
  • Loading branch information
jhawthorn committed Jan 7, 2016
2 parents 8e1b9a7 + 5a034a1 commit c2f6d9e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/spec/models/spree/shipment_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
require 'spec_helper'
require 'benchmark'

describe Spree::Shipment, :type => :model do
let(:stock_location) { create(:stock_location) }
describe Spree::Shipment, type: :model do
let(:order) { create(:order_ready_to_ship, line_items_count: 1) }
let(:shipping_method) { create(:shipping_method, name: "UPS") }
let(:stock_location) { create(:stock_location) }
Expand Down Expand Up @@ -35,9 +34,7 @@

# Regression test for https://github.com/spree/spree/issues/4063
context "number generation" do
before do
allow(order).to receive :update!
end
before { allow(order).to receive :update! }

it "generates a number containing a letter + 11 numbers" do
shipment.save
Expand Down

0 comments on commit c2f6d9e

Please sign in to comment.