invitational 1.4.3 → 1.5.0

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.
@@ -27,6 +27,15 @@ describe Invitational::Invitation do
27
27
  Then {new_invite.claim_hash.should_not be_nil}
28
28
  And {new_invite.date_sent.should_not be_nil}
29
29
  end
30
+
31
+ context "Generates Claim hash that is not predictable" do
32
+ Given(:first_invite) {Invitation.new(email: "test999@d-i.co", invitable: entity1, role: :user)}
33
+ Given(:second_invite) {Invitation.new(email: "test999@d-i.co", invitable: entity2, role: :user)}
34
+
35
+ When {first_invite.save && second_invite.save}
36
+
37
+ Then {first_invite.claim_hash != second_invite.claim_hash}
38
+ end
30
39
  end
31
40
 
32
41
  context "Role Title" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invitational
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Goerlich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-07 00:00:00.000000000 Z
11
+ date: 2021-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails