Last active
December 17, 2015 13:29
-
-
Save badosu/5618037 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
describe "taking |a, *b| arguments" do | |
it "raises an TypeError if #to_ary raises an error" do | |
obj = mock("block yield to_ary raising an error") | |
obj.should_receive(:to_ary).and_raise(StandardError) | |
lambda { @y.s(obj) { |a, *b| } }.should raise_error(TypeError) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment