Sha256: a8a324579f6abd53a6f3603cad43cf8c249c32fc4cf8fa92cbe27b39fd2fda48

Contents?: true

Size: 255 Bytes

Versions: 21

Compression:

Stored size: 255 Bytes

Contents

require 'spec_helper'
require 'cancan/matchers'

describe Role::Admin do
  let :user do FactoryGirl.create(:admin) end

  describe 'abilities' do
    subject(:ability) { Ability.new(user) }

    it{ expect(ability).to be_able_to :manage, User }
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
xing-framework-1.0.0.pre.beta.1 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-1.0.0.pre.beta default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-1.0.0.pre.alpha default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.3.2 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.3.1 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.3.0 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.9 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.9.beta1 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.8 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.8.beta1 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.7 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.7.pre.beta1 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.6 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.5 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.4 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.3 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.2 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.1 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.2.0 default_configuration/base_app/backend/spec/models/role/admin_spec.rb
xing-framework-0.0.3 default_configuration/base_app/backend/spec/models/role/admin_spec.rb