spec/flipper/ui/actions/feature_spec.rb in flipper-ui-0.7.2 vs spec/flipper/ui/actions/feature_spec.rb in flipper-ui-0.7.3
- old
+ new
@@ -4,11 +4,11 @@
describe "DELETE /features/:feature" do
before do
flipper.enable :search
delete "/features/search",
{"authenticity_token" => "a"},
- "rack.session" => {:csrf => "a"}
+ "rack.session" => {"_csrf_token" => "a"}
end
it "removes feature" do
expect(flipper.features.map(&:key)).not_to include("search")
end
@@ -22,10 +22,10 @@
describe "POST /features/:feature with _method=DELETE" do
before do
flipper.enable :search
post "/features/search",
{"_method" => "DELETE", "authenticity_token" => "a"},
- "rack.session" => {:csrf => "a"}
+ "rack.session" => {"_csrf_token" => "a"}
end
it "removes feature" do
expect(flipper.features.map(&:key)).not_to include("search")
end