Sha256: 9a17956b1b10267fe0d0155bd668458c11caafc460d0f5b07a1267de379d1bb4

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

require 'helper'

RSpec.describe Flipper::UI::Actions::AddFeature do
  describe "GET /features/new" do
    before do
      get "/features/new"
    end

    it "responds with success" do
      expect(last_response.status).to be(200)
    end

    it "renders template" do
      expect(last_response.body).to include('<form action="/features" method="post">')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flipper-ui-0.7.5 spec/flipper/ui/actions/add_feature_spec.rb
flipper-ui-0.7.4 spec/flipper/ui/actions/add_feature_spec.rb
flipper-ui-0.7.3 spec/flipper/ui/actions/add_feature_spec.rb
flipper-ui-0.7.2 spec/flipper/ui/actions/add_feature_spec.rb