Sha256: fd0f1f5215099db042072ffb48c6a9e10ac9984c9766b06232d2f820231847c1

Contents?: true

Size: 329 Bytes

Versions: 7

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

7 entries across 7 versions & 1 rubygems

Version Path
flipper-ui-1.3.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-1.3.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-1.3.0 spec/flipper/ui/actions/home_spec.rb
flipper-ui-1.3.0.pre spec/flipper/ui/actions/home_spec.rb
flipper-ui-1.2.2 spec/flipper/ui/actions/home_spec.rb
flipper-ui-1.2.1 spec/flipper/ui/actions/home_spec.rb
flipper-ui-1.2.0 spec/flipper/ui/actions/home_spec.rb