RSpec.describe Flipper::UI::Actions::ActorsGate do let(:token) do if Rack::Protection::AuthenticityToken.respond_to?(:random_token) Rack::Protection::AuthenticityToken.random_token else 'a' end end let(:session) do { :csrf => token, 'csrf' => token, '_csrf_token' => token } end describe 'GET /features/:feature/actors' do before do get 'features/search/actors' end it 'responds with success' do expect(last_response.status).to be(200) end it 'renders add new actor form' do form = '