Skip to content
Browse files

specs for sulfuras

  • Loading branch information...
1 parent 78a0ee0 commit 98a4707188d813826ade3506d04d77deac476c80 @drnic committed May 26, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 gilded_rose_spec.rb
View
15 gilded_rose_spec.rb
@@ -34,6 +34,21 @@
lambda { app.update_quality }.should change(subject, :quality).by(2) # existing behavior
end
+ it "never has quality above 50" do
+ subject.quality = 50
+ lambda { app.update_quality }.should_not change(subject, :quality)
+ end
+ end
+
+ describe "Sulfuras intricacies" do
+ subject { app.items.find { |i| i.name =~ /Sulfuras/ } }
+
+ it "never has to be sold" do
+ lambda { app.update_quality }.should_not change(subject, :sell_in)
+ end
+ it "never decreases in quality" do
+ lambda { app.update_quality }.should_not change(subject, :quality)
+ end
end
end

0 comments on commit 98a4707

Please sign in to comment.
Something went wrong with that request. Please try again.