mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2.8 -> 3.0 in specs
This commit is contained in:
parent
9b535f3ff7
commit
1af0319fc8
147 changed files with 199 additions and 201 deletions
|
|
@ -23,7 +23,7 @@ describe "Binding#eval" do
|
|||
bind2.local_variables.should == []
|
||||
end
|
||||
|
||||
ruby_version_is ""..."2.8" do
|
||||
ruby_version_is ""..."3.0" do
|
||||
it "inherits __LINE__ from the enclosing scope" do
|
||||
obj = BindingSpecs::Demo.new(1)
|
||||
bind = obj.get_binding
|
||||
|
|
@ -50,7 +50,7 @@ describe "Binding#eval" do
|
|||
end
|
||||
end
|
||||
|
||||
ruby_version_is "2.8" do
|
||||
ruby_version_is "3.0" do
|
||||
it "starts with line 1 if single argument is given" do
|
||||
obj = BindingSpecs::Demo.new(1)
|
||||
bind = obj.get_binding
|
||||
|
|
@ -89,7 +89,7 @@ describe "Binding#eval" do
|
|||
bind.eval("#foo\n__LINE__", "(test)", 88).should == 89
|
||||
end
|
||||
|
||||
ruby_version_is ""..."2.8" do
|
||||
ruby_version_is ""..."3.0" do
|
||||
it "inherits __FILE__ from the enclosing scope" do
|
||||
obj = BindingSpecs::Demo.new(1)
|
||||
bind = obj.get_binding
|
||||
|
|
@ -97,7 +97,7 @@ describe "Binding#eval" do
|
|||
end
|
||||
end
|
||||
|
||||
ruby_version_is "2.8" do
|
||||
ruby_version_is "3.0" do
|
||||
it "Uses (eval) as __FILE__ if single argument given" do
|
||||
obj = BindingSpecs::Demo.new(1)
|
||||
bind = obj.get_binding
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue