Skip to content

Commit

Permalink
[GR-14806] Update ruby/spec
Browse files Browse the repository at this point in the history
PullRequest: truffleruby/4285
  • Loading branch information
andrykonchin authored and eregon committed Jun 7, 2024
2 parents a7cccaf + 0d9c92c commit 7919ce9
Show file tree
Hide file tree
Showing 20 changed files with 1,247 additions and 1,407 deletions.
2 changes: 1 addition & 1 deletion spec/ruby/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 3.0
TargetRubyVersion: 3.1
DisplayCopNames: true
Exclude:
- command_line/fixtures/bad_syntax.rb
Expand Down
12 changes: 2 additions & 10 deletions spec/ruby/command_line/frozen_strings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,8 @@
ruby_exe(fixture(__FILE__, "freeze_flag_one_literal.rb")).chomp.should == "false"
end

ruby_version_is "3.4" do
it "if file has no frozen_string_literal comment produce different frozen strings each time" do
ruby_exe(fixture(__FILE__, "string_literal_raw.rb")).chomp.should == "frozen:true interned:false"
end
end

ruby_version_is ""..."3.4" do
it "if file has no frozen_string_literal comment produce different mutable strings each time" do
ruby_exe(fixture(__FILE__, "string_literal_raw.rb")).chomp.should == "frozen:false interned:false"
end
it "if file has no frozen_string_literal comment produce different mutable strings each time" do
ruby_exe(fixture(__FILE__, "string_literal_raw.rb")).chomp.should == "frozen:false interned:false"
end

it "if file has frozen_string_literal:true comment produce same frozen strings each time" do
Expand Down
Loading

0 comments on commit 7919ce9

Please sign in to comment.