diff options
Diffstat (limited to 'spec/ruby/core/integer/downto_spec.rb')
| -rw-r--r-- | spec/ruby/core/integer/downto_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/integer/downto_spec.rb b/spec/ruby/core/integer/downto_spec.rb index 987704b02e..a244d3df55 100644 --- a/spec/ruby/core/integer/downto_spec.rb +++ b/spec/ruby/core/integer/downto_spec.rb @@ -27,8 +27,8 @@ describe "Integer#downto [stop] when self and stop are Integers" do end it "raises an ArgumentError for invalid endpoints" do - -> {1.downto("A") {|x| p x } }.should raise_error(ArgumentError) - -> {1.downto(nil) {|x| p x } }.should raise_error(ArgumentError) + -> {1.downto("A") {|x| p x } }.should.raise(ArgumentError) + -> {1.downto(nil) {|x| p x } }.should.raise(ArgumentError) end describe "when no block is given" do @@ -45,9 +45,9 @@ describe "Integer#downto [stop] when self and stop are Integers" do describe "size" do it "raises an ArgumentError for invalid endpoints" do enum = 1.downto("A") - -> { enum.size }.should raise_error(ArgumentError) + -> { enum.size }.should.raise(ArgumentError) enum = 1.downto(nil) - -> { enum.size }.should raise_error(ArgumentError) + -> { enum.size }.should.raise(ArgumentError) end it "returns self - stop + 1" do |
