Sha256: 95df76d94ff6d0b4b45101aba21ae992b30cfb9115ba0b25b5c5a0ca5bbc1714

Contents?: true

Size: 367 Bytes

Versions: 6

Compression:

Stored size: 367 Bytes

Contents

require 'spec_helper'

describe GreenFlag::Admin::WhiteListUsersController do

  describe '#index' do
    subject { get :index, feature_id: 1, format: 'js' }
    context 'with no whitelisted users' do
      before(:each) do
        allow(GreenFlag::FeatureDecision).to receive(:whitelisted_users) { [] }
      end
      it { should be_successful }
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
green_flag-0.4.0 spec/controllers/admin/white_list_users_controller_spec.rb
green_flag-0.3.0 spec/controllers/admin/white_list_users_controller_spec.rb
green_flag-0.2.0 spec/controllers/admin/white_list_users_controller_spec.rb
green_flag-0.1.2 spec/controllers/admin/white_list_users_controller_spec.rb
green_flag-0.1.1 spec/controllers/admin/white_list_users_controller_spec.rb
green_flag-0.1.0 spec/controllers/admin/white_list_users_controller_spec.rb