Skip to content

Commit

Permalink
Merge pull request solidusio#2580 from jhawthorn/fix_spurious_promoti…
Browse files Browse the repository at this point in the history
…on_code_failure

Fix id-dependant promotion code spec failure
  • Loading branch information
kennyadsl authored Feb 16, 2018
2 parents 5fedcf4 + 2f1f64c commit 6970c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/spec/requests/spree/api/promotions_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module Spree
end

context 'when finding by code' do
let(:id) { promotion.codes.first }
let(:id) { promotion.codes.first.value }

it_behaves_like "a JSON response"
end
Expand Down

0 comments on commit 6970c32

Please sign in to comment.