Sha256: ef02f62e382cbbf35ba57679628aa1a0da874b01b20a9c4abca5d9766a947308

Contents?: true

Size: 270 Bytes

Versions: 10

Compression:

Stored size: 270 Bytes

Contents

shared_examples_for 'allow' do |user_role|
  it "allow index for #{user_role}" do
    user = FactoryGirl.create("#{user_role}_user")
    login_as user, scope: :user

    gaku_get :index
    response.should be_success
    response.should render_template :index
  end
end

Version data entries

10 entries across 5 versions & 1 rubygems

Version Path
gaku-0.2.4 frontend/spec/support/controllers/shared_examples/allow.rb
gaku-0.2.4 admin/spec/support/controllers/shared_examples/allow.rb
gaku-0.2.3 admin/spec/support/controllers/shared_examples/allow.rb
gaku-0.2.3 frontend/spec/support/controllers/shared_examples/allow.rb
gaku-0.2.2 frontend/spec/support/controllers/shared_examples/allow.rb
gaku-0.2.2 admin/spec/support/controllers/shared_examples/allow.rb
gaku-0.2.1 frontend/spec/support/controllers/shared_examples/allow.rb
gaku-0.2.1 admin/spec/support/controllers/shared_examples/allow.rb
gaku-0.2.0 admin/spec/support/controllers/shared_examples/allow.rb
gaku-0.2.0 frontend/spec/support/controllers/shared_examples/allow.rb