Lines Matching refs:Ability
4 describe Ability do
20 subject(:ability){ Ability.new(User.new, nil) }
40 subject(:ability){ Ability.new(reader, nil) }
60 subject(:ability){ Ability.new(owner, nil) }
82 subject(:ability){ Ability.new(editor, nil) }
114 subject(:ability){ Ability.new(User.new, nil) }
123 subject(:ability){ Ability.new(User.new, access_token.to_s) }
141 subject(:ability){ Ability.new(reader, nil) }
155 subject(:ability){ Ability.new(editor, nil) }
165 subject(:ability){ Ability.new(owner, nil) }
186 subject(:ability){ Ability.new(User.new, nil) }
197 expect(Ability.new(reader, nil)).to_not be_able_to(:write, item)
201 expect(Ability.new(reader, nil)).to be_able_to(:show, item)
208 expect(Ability.new(role, nil)).to be_able_to(:write, item)
214 expect(Ability.new(role, nil)).to be_able_to(:show, item)
222 expect(Ability.new(role, nil)).to_not be_able_to(:update, item)
227 expect(Ability.new(owner, nil)).to be_able_to(:update, item)
237 subject(:ability){ Ability.new(user, nil) }
274 subject(:ability){ Ability.new(comment.user, nil) }
286 subject(:ability){ Ability.new(create(:admin), nil) }
294 subject(:ability){ Ability.new(owner, nil) }
306 subject(:ability){ Ability.new(owner, nil) }