paid_up 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +1464 -195
- data/paid_up.gemspec +2 -2
- data/spec/models/user_spec.rb +7 -7
- metadata +1 -1
data/paid_up.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: paid_up 0.7.
|
5
|
+
# stub: paid_up 0.7.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "paid_up"
|
9
|
-
s.version = "0.7.
|
9
|
+
s.version = "0.7.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/spec/models/user_spec.rb
CHANGED
@@ -191,7 +191,7 @@ describe User do
|
|
191
191
|
context 'when possessing 3 rows' do
|
192
192
|
before do
|
193
193
|
3.times do
|
194
|
-
group = Group.create!
|
194
|
+
group = Group.create! title: Forgery('name').company_name
|
195
195
|
professional_subscriber.add_role(:owner, group)
|
196
196
|
end
|
197
197
|
end
|
@@ -298,7 +298,7 @@ describe User do
|
|
298
298
|
describe "Abilities" do
|
299
299
|
|
300
300
|
context "when anonymous" do
|
301
|
-
let(:group) { Group.create!(
|
301
|
+
let(:group) { Group.create!(title: 'Test Group') }
|
302
302
|
let(:user){ nil }
|
303
303
|
subject(:ability){ Ability.new(user) }
|
304
304
|
it{ should be_able_to(:read, Group) }
|
@@ -309,7 +309,7 @@ describe User do
|
|
309
309
|
it{ should_not be_able_to(:create, Doodad) }
|
310
310
|
end
|
311
311
|
context "when on free plan" do
|
312
|
-
let(:group) { Group.create!(
|
312
|
+
let(:group) { Group.create!(title: 'Test Group') }
|
313
313
|
let(:user){ free_subscriber }
|
314
314
|
subject(:ability){ Ability.new(user) }
|
315
315
|
it{ should be_able_to(:read, Group) }
|
@@ -321,7 +321,7 @@ describe User do
|
|
321
321
|
end
|
322
322
|
context "when on group plan" do
|
323
323
|
context "given no groups are owned" do
|
324
|
-
let(:group) { Group.create!(
|
324
|
+
let(:group) { Group.create!(title: 'Test Group') }
|
325
325
|
let(:user){ group_leader_subscriber }
|
326
326
|
subject(:ability){ Ability.new(user) }
|
327
327
|
it{ should be_able_to(:read, Group) }
|
@@ -332,7 +332,7 @@ describe User do
|
|
332
332
|
it{ should be_able_to(:create, Doodad) }
|
333
333
|
end
|
334
334
|
context "given one group is owned" do
|
335
|
-
let(:group) { Group.create!(
|
335
|
+
let(:group) { Group.create!(title: 'Test Group') }
|
336
336
|
let(:user) {
|
337
337
|
group_leader_subscriber.add_role(:owner, group)
|
338
338
|
group_leader_subscriber
|
@@ -348,7 +348,7 @@ describe User do
|
|
348
348
|
end
|
349
349
|
context "when on professional plan" do
|
350
350
|
context "given no groups are owned" do
|
351
|
-
let(:group) { Group.create!(
|
351
|
+
let(:group) { Group.create!(title: 'Test Group') }
|
352
352
|
let(:user){ professional_subscriber }
|
353
353
|
subject(:ability){ Ability.new(user) }
|
354
354
|
it{ should be_able_to(:read, Group) }
|
@@ -359,7 +359,7 @@ describe User do
|
|
359
359
|
it{ should be_able_to(:create, Doodad) }
|
360
360
|
end
|
361
361
|
context "given one group is owned" do
|
362
|
-
let(:group){ Group.create!(
|
362
|
+
let(:group){ Group.create!(title: 'Test Group') }
|
363
363
|
let(:user){
|
364
364
|
professional_subscriber.add_role(:owner, group)
|
365
365
|
professional_subscriber
|