Skip to content

Commit bd9adba

Browse files
committed
Fix specs for Ruby 3.2
Since `Object#=~` has been removed in Ruby 3.2, the following code raises NoMethodError when `asset` provided as `Hash`. https://github.com/seanpdoyle/ember-cli-rails-assets/blob/v0.7.0/lib/ember_cli/assets/asset_map.rb#L36 Ref: https://bugs.ruby-lang.org/issues/15231 This spec should be updated with empty value as `nil` due to type consistency.
1 parent e3200f5 commit bd9adba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/lib/ember_cli/assets/asset_map_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
it "includes the most recent javascript build artifacts" do
66
asset_map = {
77
"assets" => {
8-
"not-a-match" => {},
8+
"not-a-match" => nil,
99
"bar.js" => "bar-abc123.js",
1010
"vendor.js" => "vendor-abc123.js",
1111
},
@@ -42,7 +42,7 @@
4242
it "includes the most recent stylesheet build artifacts" do
4343
asset_map = {
4444
"assets" => {
45-
"not-a-match" => {},
45+
"not-a-match" => nil,
4646
"bar.css" => "bar-abc123.css",
4747
"vendor.css" => "vendor-abc123.css",
4848
},

0 commit comments

Comments
 (0)