spec/flipper/ui_spec.rb in flipper-ui-0.11.0.beta3 vs spec/flipper/ui_spec.rb in flipper-ui-0.11.0.beta4

- old
+ new

@@ -7,14 +7,10 @@ else 'a' end end let(:session) do - if Rack::Protection::AuthenticityToken.respond_to?(:random_token) - { csrf: token } - else - { '_csrf_token' => token } - end + { :csrf => token, 'csrf' => token, '_csrf_token' => token } end describe 'Initializing middleware with flipper instance' do let(:app) { build_app(flipper) }