Created
March 4, 2013 19:19
-
-
Save marcandre/5084673 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change: | |
ruby_version_is '' ... '1.9' do | |
it "raises a TypeError on a frozen array" do | |
lambda { ArraySpecs.frozen_array << 5 }.should raise_error(TypeError) | |
end | |
end | |
ruby_version_is '1.9' do | |
it "raises a RuntimeError on a frozen array" do | |
lambda { ArraySpecs.frozen_array << 5 }.should raise_error(RuntimeError) | |
end | |
end | |
# To: | |
it "raises the appropriate error on a frozen array" do | |
lambda { ArraySpecs.frozen_array << 5 }.should raise_error(mutating_frozen_object_error) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment