Update to ruby/spec@5e48206
This commit is contained in:
parent
29a5fcd60b
commit
53938efd7b
@ -191,7 +191,7 @@ describe "Integer#<< (with n << m)" do
|
|||||||
(0 << bignum_value).should == 0
|
(0 << bignum_value).should == 0
|
||||||
end
|
end
|
||||||
|
|
||||||
with_feature(:no_memory_error, :infinite_memory) do
|
ruby_bug "#18518", ""..."3.4" do
|
||||||
it "raises NoMemoryError when m > 0 and n != 0" do
|
it "raises NoMemoryError when m > 0 and n != 0" do
|
||||||
coerce_long = mock("long")
|
coerce_long = mock("long")
|
||||||
coerce_long.stub!(:to_int).and_return(2**40)
|
coerce_long.stub!(:to_int).and_return(2**40)
|
||||||
|
@ -213,7 +213,7 @@ describe "Integer#>> (with n >> m)" do
|
|||||||
(0 >> -bignum_value).should == 0
|
(0 >> -bignum_value).should == 0
|
||||||
end
|
end
|
||||||
|
|
||||||
with_feature(:no_memory_error, :infinite_memory) do
|
ruby_bug "#18518", ""..."3.4" do
|
||||||
it "raises NoMemoryError when m < 0 and n != 0" do
|
it "raises NoMemoryError when m < 0 and n != 0" do
|
||||||
coerce_long = mock("long")
|
coerce_long = mock("long")
|
||||||
coerce_long.stub!(:to_int).and_return(-(2**40))
|
coerce_long.stub!(:to_int).and_return(-(2**40))
|
||||||
|
@ -14,10 +14,6 @@ else
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
unless GC::INTERNAL_CONSTANTS[:RB_BUG_INSTEAD_OF_RB_MEMERROR]
|
|
||||||
MSpec.enable_feature :no_memory_error
|
|
||||||
end
|
|
||||||
|
|
||||||
unless ENV['MSPEC_RUNNER'] # Running directly with ruby some_spec.rb
|
unless ENV['MSPEC_RUNNER'] # Running directly with ruby some_spec.rb
|
||||||
mspec_lib = File.expand_path("../../mspec/lib", __FILE__)
|
mspec_lib = File.expand_path("../../mspec/lib", __FILE__)
|
||||||
$LOAD_PATH << mspec_lib if File.directory?(mspec_lib)
|
$LOAD_PATH << mspec_lib if File.directory?(mspec_lib)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user