Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianob committed Sep 21, 2017
1 parent bbb98fa commit 60910fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/concerns/contribution/custom_validators_spec.rb
Expand Up @@ -19,14 +19,14 @@
end

describe '#value_must_be_at_least_rewards_value' do
let(:reward) { create(:reward, minimum_value: 500) }
let(:reward) { create(:reward, minimum_value: 500, shipping_options: 'national') }
let(:contribution) { build(:contribution, reward: reward, project: reward.project, value: value) }
subject { contribution }
context 'when value is lower than reward minimum value' do
let(:value) { 499.99 }
it { is_expected.not_to be_valid }
end
context 'when value is equal than reward minimum value' do
context 'when value is equal to reward minimum value' do
let(:value) { 500.00 }
it { is_expected.to be_valid }
end
Expand Down

0 comments on commit 60910fe

Please sign in to comment.