mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@875a09e
This commit is contained in:
parent
a06301b103
commit
5c276e1cc9
1247 changed files with 5316 additions and 5028 deletions
|
@ -70,7 +70,7 @@ describe "Kernel#open" do
|
|||
end
|
||||
|
||||
it "raises an ArgumentError if not passed one argument" do
|
||||
lambda { open }.should raise_error(ArgumentError)
|
||||
-> { open }.should raise_error(ArgumentError)
|
||||
end
|
||||
|
||||
describe "when given an object that responds to to_open" do
|
||||
|
@ -129,9 +129,9 @@ describe "Kernel#open" do
|
|||
|
||||
it "raises a TypeError if passed a non-String that does not respond to #to_open" do
|
||||
obj = mock('non-fileish')
|
||||
lambda { open(obj) }.should raise_error(TypeError)
|
||||
lambda { open(nil) }.should raise_error(TypeError)
|
||||
lambda { open(7) }.should raise_error(TypeError)
|
||||
-> { open(obj) }.should raise_error(TypeError)
|
||||
-> { open(nil) }.should raise_error(TypeError)
|
||||
-> { open(7) }.should raise_error(TypeError)
|
||||
end
|
||||
|
||||
it "accepts nil for mode and permission" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue