paid_up 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
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.0 ruby lib
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.0"
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"]
@@ -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! name: 'Test Group'
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!(name: 'Test Group') }
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!(name: 'Test Group') }
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!(name: 'Test Group') }
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!(name: 'Test Group') }
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!(name: 'Test Group') }
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!(name: 'Test Group') }
362
+ let(:group){ Group.create!(title: 'Test Group') }
363
363
  let(:user){
364
364
  professional_subscriber.add_role(:owner, group)
365
365
  professional_subscriber
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paid_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren