Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

specs for sulfuras

  • Loading branch information...
commit 98a4707188d813826ade3506d04d77deac476c80 1 parent 78a0ee0
@drnic authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.