spec/concerns/koudoku/plan_spec.rb in koudoku-1.0.0 vs spec/concerns/koudoku/plan_spec.rb in koudoku-1.1.0

- old
+ new

@@ -11,29 +11,29 @@ it 'returns true if the price is higher' do plan = FakePlan.new plan.price = 123.23 cheaper_plan = FakePlan.new cheaper_plan.price = 61.61 - plan.is_upgrade_from?(cheaper_plan).should be_true + expect(plan.is_upgrade_from?(cheaper_plan)).to eq(true) end it 'returns true if the price is the same' do plan = FakePlan.new plan.price = 123.23 - plan.is_upgrade_from?(plan).should be_true + expect(plan.is_upgrade_from?(plan)).to eq(true) end it 'returns false if the price is the same or higher' do plan = FakePlan.new plan.price = 61.61 more_expensive_plan = FakePlan.new more_expensive_plan.price = 123.23 - plan.is_upgrade_from?(more_expensive_plan).should be_false + expect(plan.is_upgrade_from?(more_expensive_plan)).to eq(false) end it 'handles a nil value gracefully' do plan = FakePlan.new plan.price = 123.23 cheaper_plan = FakePlan.new - lambda { - plan.is_upgrade_from?(cheaper_plan).should be_true - }.should_not raise_error + expect { + expect(plan.is_upgrade_from?(cheaper_plan)).to eq(true) + }.not_to raise_error end end end