diff --git a/spec/web/authorize_spec.rb b/spec/web/authorize_spec.rb index 93737a3..6ec496a 100644 --- a/spec/web/authorize_spec.rb +++ b/spec/web/authorize_spec.rb @@ -77,8 +77,14 @@ end end - it "should generate valid form field string" do - expect(@view.datatrans_notification_request_hidden_fields(@datatrans, @transaction)).to eq "" + it 'should generate valid form field string' do + if Gem.loaded_specs['activesupport'].version >= Gem::Version.create('7.0') + expected_output = '' + else + expected_output = '' + end + + expect(@view.datatrans_notification_request_hidden_fields(@datatrans, @transaction)).to eq expected_output end end