saucy 0.3.4 → 0.3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/membership.rb +1 -1
- data/spec/models/membership_spec.rb +1 -1
- metadata +4 -3
data/app/models/membership.rb
CHANGED
@@ -5,7 +5,7 @@ describe Membership do
|
|
5
5
|
it { should belong_to(:user) }
|
6
6
|
it { should validate_presence_of(:account_id) }
|
7
7
|
it { should validate_presence_of(:user_id) }
|
8
|
-
it { should have_many(:permissions) }
|
8
|
+
it { should have_many(:permissions).dependent(:destroy) }
|
9
9
|
it { should have_many(:projects).through(:permissions) }
|
10
10
|
|
11
11
|
describe "given an existing account membership" do
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saucy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 69
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
9
|
- 4
|
10
|
-
|
10
|
+
- 1
|
11
|
+
version: 0.3.4.1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- thoughtbot, inc.
|
@@ -18,7 +19,7 @@ autorequire:
|
|
18
19
|
bindir: bin
|
19
20
|
cert_chain: []
|
20
21
|
|
21
|
-
date: 2011-03-
|
22
|
+
date: 2011-03-31 00:00:00 -04:00
|
22
23
|
default_executable:
|
23
24
|
dependencies:
|
24
25
|
- !ruby/object:Gem::Dependency
|