Sha256: 0ef2f5a2782ff348f49955987209851aca9d8500c9fe8eb0ce0de7041d32aea1

Contents?: true

Size: 269 Bytes

Versions: 9

Compression:

Stored size: 269 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

9 entries across 5 versions & 1 rubygems

Version Path
gaku-0.1.1 frontend/spec/support/controllers/shared_examples/allow.rb
gaku-0.1.1 admin/spec/support/controllers/shared_examples/allow.rb
gaku-0.1.1 archive/spec/support/controllers/shared_examples/allow.rb
gaku-0.1.0 archive/spec/support/controllers/shared_examples/allow.rb
gaku-0.1.0 admin/spec/support/controllers/shared_examples/allow.rb
gaku-0.1.0 frontend/spec/support/controllers/shared_examples/allow.rb
gaku-0.0.3 core/spec/support/shared_examples/allow.rb
gaku-0.0.2 core/spec/support/shared_examples/allow.rb
gaku-0.0.1 core/spec/support/shared_examples/allow.rb