Sha256: 60e42424d88900ce7c3d66bbf826b77d03351da622e918d06ae1f8bbc3a1eb45

Contents?: true

Size: 347 Bytes

Versions: 39

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

39 entries across 39 versions & 1 rubygems

Version Path
flipper-ui-0.22.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.22.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.22.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.21.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.21.0.rc2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.21.0.rc1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.20.4 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.20.3 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.20.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.20.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.20.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.20.0.beta3 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.20.0.beta2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.20.0.beta1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.19.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.19.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.18.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.17.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.17.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.16.2 spec/flipper/ui/actions/home_spec.rb