Sha256: 2e0d1e0cc4d45dcb5960d20bffd64e71ade2b57434c7684326cbe51e5ed693d9

Contents?: true

Size: 347 Bytes

Versions: 12

Compression:

Stored size: 347 Bytes

Contents

require 'helper'

RSpec.describe Flipper::UI::Actions::Home do
  describe "GET /" do
    before do
      flipper[:stats].enable
      flipper[:search].enable
      get "/"
    end

    it "responds with redirect" do
      expect(last_response.status).to be(302)
      expect(last_response.headers["Location"]).to eq("/features")
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
flipper-ui-0.10.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.10.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.10.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.9.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.9.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.9.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.9.0.beta1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.8.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.7.5 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.7.4 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.7.3 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.7.2 spec/flipper/ui/actions/home_spec.rb