Commit 34106a72 authored by Steve Abrams's avatar Steve Abrams

Fix Ruby 2.7 deprecation warnings in invites_controller_spec.rb

parent 3df1baec
...@@ -109,8 +109,8 @@ RSpec.describe InvitesController, :snowplow do ...@@ -109,8 +109,8 @@ RSpec.describe InvitesController, :snowplow do
it 'tracks the user as experiment group' do it 'tracks the user as experiment group' do
request request
expect_snowplow_event(snowplow_event.merge(action: 'opened')) expect_snowplow_event(**snowplow_event.merge(action: 'opened'))
expect_snowplow_event(snowplow_event.merge(action: 'accepted')) expect_snowplow_event(**snowplow_event.merge(action: 'accepted'))
end end
end end
...@@ -121,8 +121,8 @@ RSpec.describe InvitesController, :snowplow do ...@@ -121,8 +121,8 @@ RSpec.describe InvitesController, :snowplow do
it 'tracks the user as control group' do it 'tracks the user as control group' do
request request
expect_snowplow_event(snowplow_event.merge(action: 'opened')) expect_snowplow_event(**snowplow_event.merge(action: 'opened'))
expect_snowplow_event(snowplow_event.merge(action: 'accepted')) expect_snowplow_event(**snowplow_event.merge(action: 'accepted'))
end end
end end
...@@ -173,7 +173,7 @@ RSpec.describe InvitesController, :snowplow do ...@@ -173,7 +173,7 @@ RSpec.describe InvitesController, :snowplow do
it 'tracks the user as experiment group' do it 'tracks the user as experiment group' do
request request
expect_snowplow_event(snowplow_event.merge(action: 'accepted')) expect_snowplow_event(**snowplow_event.merge(action: 'accepted'))
end end
end end
...@@ -184,7 +184,7 @@ RSpec.describe InvitesController, :snowplow do ...@@ -184,7 +184,7 @@ RSpec.describe InvitesController, :snowplow do
it 'tracks the user as control group' do it 'tracks the user as control group' do
request request
expect_snowplow_event(snowplow_event.merge(action: 'accepted')) expect_snowplow_event(**snowplow_event.merge(action: 'accepted'))
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment