fine_print 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -7
- data/lib/fine_print/controller_additions.rb +7 -5
- data/lib/fine_print/controller_additions.rb~ +6 -6
- data/lib/fine_print/version.rb +1 -1
- data/lib/fine_print/version.rb~ +3 -0
- data/lib/fine_print.rb +31 -27
- data/lib/fine_print.rb~ +12 -28
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +71 -0
- data/spec/dummy/log/test.log +4185 -0
- data/spec/lib/fine_print_spec.rb +16 -16
- data/spec/lib/fine_print_spec.rb~ +15 -15
- metadata +2 -1
data/spec/lib/fine_print_spec.rb
CHANGED
@@ -24,24 +24,24 @@ describe FinePrint do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it 'gets unsigned contracts' do
|
27
|
-
expect(FinePrint.get_unsigned_contract_names(
|
27
|
+
expect(FinePrint.get_unsigned_contract_names(@user, 'beta', 'alpha')).to eq ['alpha']
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'allows users to sign contracts' do
|
31
|
-
expect(FinePrint.signed_contract?(@
|
32
|
-
expect(FinePrint.signed_contract?(@
|
33
|
-
expect(FinePrint.signed_contract?(@
|
34
|
-
expect(FinePrint.signed_any_contract_version?(@
|
35
|
-
expect(FinePrint.signed_any_contract_version?(@
|
36
|
-
expect(FinePrint.signed_any_contract_version?(@
|
37
|
-
|
38
|
-
expect(FinePrint.sign_contract(@
|
39
|
-
|
40
|
-
expect(FinePrint.signed_contract?(@
|
41
|
-
expect(FinePrint.signed_contract?(@
|
42
|
-
expect(FinePrint.signed_contract?(@
|
43
|
-
expect(FinePrint.signed_any_contract_version?(@
|
44
|
-
expect(FinePrint.signed_any_contract_version?(@
|
45
|
-
expect(FinePrint.signed_any_contract_version?(@
|
31
|
+
expect(FinePrint.signed_contract?(@user, @alpha_1)).to eq true
|
32
|
+
expect(FinePrint.signed_contract?(@user, @alpha_2)).to eq false
|
33
|
+
expect(FinePrint.signed_contract?(@user, @beta_1)).to eq true
|
34
|
+
expect(FinePrint.signed_any_contract_version?(@user, @alpha_1)).to eq true
|
35
|
+
expect(FinePrint.signed_any_contract_version?(@user, @alpha_2)).to eq true
|
36
|
+
expect(FinePrint.signed_any_contract_version?(@user, @beta_1)).to eq true
|
37
|
+
|
38
|
+
expect(FinePrint.sign_contract(@user, @alpha_2)).to be_a FinePrint::Signature
|
39
|
+
|
40
|
+
expect(FinePrint.signed_contract?(@user, @alpha_1)).to eq true
|
41
|
+
expect(FinePrint.signed_contract?(@user, @alpha_2)).to eq true
|
42
|
+
expect(FinePrint.signed_contract?(@user, @beta_1)).to eq true
|
43
|
+
expect(FinePrint.signed_any_contract_version?(@user, @alpha_1)).to eq true
|
44
|
+
expect(FinePrint.signed_any_contract_version?(@user, @alpha_2)).to eq true
|
45
|
+
expect(FinePrint.signed_any_contract_version?(@user, @beta_1)).to eq true
|
46
46
|
end
|
47
47
|
end
|
@@ -28,20 +28,20 @@ describe FinePrint do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'allows users to sign contracts' do
|
31
|
-
expect(FinePrint.signed_contract?(@
|
32
|
-
expect(FinePrint.signed_contract?(@
|
33
|
-
expect(FinePrint.signed_contract?(@
|
34
|
-
expect(FinePrint.signed_any_contract_version?(@
|
35
|
-
expect(FinePrint.signed_any_contract_version?(@
|
36
|
-
expect(FinePrint.signed_any_contract_version?(@
|
37
|
-
|
38
|
-
expect(FinePrint.sign_contract(@
|
39
|
-
|
40
|
-
expect(FinePrint.signed_contract?(@
|
41
|
-
expect(FinePrint.signed_contract?(@
|
42
|
-
expect(FinePrint.signed_contract?(@
|
43
|
-
expect(FinePrint.signed_any_contract_version?(@
|
44
|
-
expect(FinePrint.signed_any_contract_version?(@
|
45
|
-
expect(FinePrint.signed_any_contract_version?(@
|
31
|
+
expect(FinePrint.signed_contract?(@user, @alpha_1)).to eq true
|
32
|
+
expect(FinePrint.signed_contract?(@user, @alpha_2)).to eq false
|
33
|
+
expect(FinePrint.signed_contract?(@user, @beta_1)).to eq true
|
34
|
+
expect(FinePrint.signed_any_contract_version?(@user, @alpha_1)).to eq true
|
35
|
+
expect(FinePrint.signed_any_contract_version?(@user, @alpha_2)).to eq true
|
36
|
+
expect(FinePrint.signed_any_contract_version?(@user, @beta_1)).to eq true
|
37
|
+
|
38
|
+
expect(FinePrint.sign_contract(@user, @alpha_2)).to be_a FinePrint::Signature
|
39
|
+
|
40
|
+
expect(FinePrint.signed_contract?(@user, @alpha_1)).to eq true
|
41
|
+
expect(FinePrint.signed_contract?(@user, @alpha_2)).to eq true
|
42
|
+
expect(FinePrint.signed_contract?(@user, @beta_1)).to eq true
|
43
|
+
expect(FinePrint.signed_any_contract_version?(@user, @alpha_1)).to eq true
|
44
|
+
expect(FinePrint.signed_any_contract_version?(@user, @alpha_2)).to eq true
|
45
|
+
expect(FinePrint.signed_any_contract_version?(@user, @beta_1)).to eq true
|
46
46
|
end
|
47
47
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fine_print
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
@@ -160,6 +160,7 @@ files:
|
|
160
160
|
- db/migrate/0_install_fine_print.rb~
|
161
161
|
- lib/fine_print.rb
|
162
162
|
- lib/fine_print/controller_additions.rb~
|
163
|
+
- lib/fine_print/version.rb~
|
163
164
|
- lib/fine_print/controller_additions.rb
|
164
165
|
- lib/fine_print/engine.rb
|
165
166
|
- lib/fine_print/version.rb
|