Skip to content

Commit

Permalink
issue #112 - added subtracting to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhutch committed Jun 9, 2017
1 parent a2994da commit 6aadbb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/models/meal_plan_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
expect(ingredient.unit).to be_nil
end

it "doesn't crash when trying to add incompatible units" do
it "doesn't crash when trying to add and subtract incompatible units" do
mealplan1.recipes << recipe1
mealplan1.recipes << recipe2
expect(mealplan1).to be_valid
mealplan1.recipes.delete(recipe2)
expect(mealplan1).to be_valid
end

end

0 comments on commit 6aadbb0

Please sign in to comment.