Sha256: 29bf8ea7fd9d1cc0802149750f44ee595499c2d43b421603c2038054f1fd01fc
Contents?: true
Size: 707 Bytes
Versions: 8
Compression:
Stored size: 707 Bytes
Contents
require 'helper' describe Flipper::UI::Actions::Gate do describe "POST /features/:feature/non-existent-gate" do before do post "/features/search/non-existent-gate", {"authenticity_token" => "a"}, "rack.session" => {:csrf => "a"} end it "responds with redirect" do last_response.status.should be(302) end it "escapes error message" do last_response.headers["Location"].should eq("/features/search?error=%22non-existent-gate%22+gate+does+not+exist+therefore+it+cannot+be+updated.") end it "renders error in template" do follow_redirect! last_response.body.should match(/non-existent-gate.*gate does not exist/) end end end
Version data entries
8 entries across 8 versions & 1 rubygems