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.16.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.16.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.15.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.14.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.13.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.13.0.beta1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.12.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.12.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.12.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.11.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.11.0.rc1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.11.0.beta9 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.11.0.beta8 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.11.0.beta7 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.11.0.beta6 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.11.0.beta5 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.11.0.beta4 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.11.0.beta3 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.11.0.beta1 spec/flipper/ui/actions/home_spec.rb