Permalink
Browse files

Added an additional max quality spec.

  • Loading branch information...
jimweirich committed Feb 17, 2011
1 parent 7c1db30 commit 4e7513afefeff9957de98f40b133fc6bcd62f58c
Showing with 6 additions and 0 deletions.
  1. +6 −0 gilded_rose_spec.rb
View
@@ -54,6 +54,12 @@
Given(:sell_in) { 0 }
Then { item.quality.should == quality+2 }
Then { item.sell_in.should == sell_in-1 }
+
+ context "with max quality" do
+ Given(:quality) { 50 }
+ Then { item.quality.should == quality }
+ Then { item.sell_in.should == sell_in-1 }
+ end
end
context "after sell date" do

0 comments on commit 4e7513a

Please sign in to comment.