Sha256: 2b3b1794455e4a7abc41cbd613006d30190ce756cc5944b1188c6521aab93463

Contents?: true

Size: 329 Bytes

Versions: 24

Compression:

Stored size: 329 Bytes

Contents

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

24 entries across 24 versions & 1 rubygems

Version Path
flipper-ui-1.1.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-1.1.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-1.1.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-1.0.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-1.0.0.pre spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.28.3 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.28.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.28.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.28.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.27.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.27.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.26.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.26.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.26.0.rc2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.26.0.rc1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.25.4 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.25.3 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.25.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.25.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-0.25.0 spec/flipper/ui/actions/home_spec.rb