strong_form 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/spec/examples.txt CHANGED
@@ -1,61 +1,66 @@
1
1
  example_id | status | run_time |
2
2
  ------------------------------------------------ | ------ | --------------- |
3
- ./spec/features/strong_form_spec.rb[1:1:1:1] | passed | 0.01067 seconds |
4
- ./spec/features/strong_form_spec.rb[1:1:1:2] | passed | 0.00616 seconds |
5
- ./spec/features/strong_form_spec.rb[1:1:1:3] | passed | 0.00511 seconds |
6
- ./spec/features/strong_form_spec.rb[1:1:1:4] | passed | 0.00667 seconds |
7
- ./spec/features/strong_form_spec.rb[1:1:1:5] | passed | 0.00572 seconds |
8
- ./spec/features/strong_form_spec.rb[1:1:2:1] | passed | 0.00559 seconds |
9
- ./spec/features/strong_form_spec.rb[1:1:2:2] | passed | 0.0087 seconds |
10
- ./spec/features/strong_form_spec.rb[1:1:2:3] | passed | 0.00777 seconds |
11
- ./spec/features/strong_form_spec.rb[1:1:2:4] | passed | 0.00573 seconds |
12
- ./spec/features/strong_form_spec.rb[1:1:2:5] | passed | 0.00687 seconds |
13
- ./spec/features/strong_form_spec.rb[1:2:1:1:1] | passed | 0.01619 seconds |
14
- ./spec/features/strong_form_spec.rb[1:2:1:1:2] | passed | 0.00673 seconds |
15
- ./spec/features/strong_form_spec.rb[1:2:1:1:3] | passed | 0.01024 seconds |
16
- ./spec/features/strong_form_spec.rb[1:2:1:1:4] | passed | 0.00664 seconds |
17
- ./spec/features/strong_form_spec.rb[1:2:1:1:5] | passed | 0.00915 seconds |
18
- ./spec/features/strong_form_spec.rb[1:2:1:1:6] | passed | 0.02026 seconds |
19
- ./spec/features/strong_form_spec.rb[1:2:2:1:1] | passed | 0.00704 seconds |
20
- ./spec/features/strong_form_spec.rb[1:2:2:1:2] | passed | 0.00783 seconds |
21
- ./spec/features/strong_form_spec.rb[1:2:2:1:3] | passed | 0.01374 seconds |
22
- ./spec/features/strong_form_spec.rb[1:2:2:1:4] | passed | 0.00728 seconds |
23
- ./spec/features/strong_form_spec.rb[1:2:2:2:1] | passed | 0.01156 seconds |
24
- ./spec/features/strong_form_spec.rb[1:2:2:2:2] | passed | 0.00947 seconds |
25
- ./spec/features/strong_form_spec.rb[1:2:3:1:1] | passed | 0.00916 seconds |
26
- ./spec/features/strong_form_spec.rb[1:2:3:1:2] | passed | 0.00793 seconds |
27
- ./spec/features/strong_form_spec.rb[1:2:3:1:3] | passed | 0.01403 seconds |
28
- ./spec/features/strong_form_spec.rb[1:2:3:1:4] | passed | 0.02731 seconds |
29
- ./spec/features/strong_form_spec.rb[1:2:3:2:1] | passed | 0.01094 seconds |
30
- ./spec/features/strong_form_spec.rb[1:2:3:2:2] | passed | 0.00922 seconds |
31
- ./spec/features/strong_form_spec.rb[1:3:1] | passed | 0.16025 seconds |
32
- ./spec/features/strong_form_spec.rb[1:3:2] | passed | 0.00584 seconds |
33
- ./spec/features/strong_form_spec.rb[1:3:3] | passed | 0.00594 seconds |
34
- ./spec/features/strong_form_spec.rb[1:3:4] | passed | 0.00676 seconds |
35
- ./spec/features/strong_form_spec.rb[1:4:1:1:1] | passed | 0.01197 seconds |
36
- ./spec/features/strong_form_spec.rb[1:4:1:1:2] | passed | 0.01235 seconds |
37
- ./spec/features/strong_form_spec.rb[1:4:2:1:1] | passed | 0.00929 seconds |
38
- ./spec/features/strong_form_spec.rb[1:4:2:1:2] | passed | 0.01231 seconds |
39
- ./spec/features/strong_form_spec.rb[1:5:1] | passed | 0.00973 seconds |
40
- ./spec/features/strong_form_spec.rb[1:5:2:1:1:1] | passed | 0.00835 seconds |
41
- ./spec/features/strong_form_spec.rb[1:5:2:1:1:2] | passed | 0.00739 seconds |
42
- ./spec/features/strong_form_spec.rb[1:5:2:1:2:1] | passed | 0.00579 seconds |
43
- ./spec/features/strong_form_spec.rb[1:5:2:1:2:2] | passed | 0.00627 seconds |
44
- ./spec/features/strong_form_spec.rb[1:5:2:1:3] | passed | 0.00795 seconds |
45
- ./spec/features/strong_form_spec.rb[1:5:2:2:1] | passed | 0.00992 seconds |
46
- ./spec/features/strong_form_spec.rb[1:5:3:1:1] | passed | 0.00913 seconds |
47
- ./spec/features/strong_form_spec.rb[1:5:3:1:2] | passed | 0.00641 seconds |
48
- ./spec/features/strong_form_spec.rb[1:5:3:2:1] | passed | 0.00704 seconds |
49
- ./spec/features/strong_form_spec.rb[1:5:4:1:1] | passed | 0.00964 seconds |
50
- ./spec/features/strong_form_spec.rb[1:5:4:1:2] | passed | 0.00954 seconds |
51
- ./spec/features/strong_form_spec.rb[1:5:4:1:3] | passed | 0.00599 seconds |
52
- ./spec/features/strong_form_spec.rb[1:5:4:1:4] | passed | 0.00598 seconds |
53
- ./spec/features/strong_form_spec.rb[1:5:4:1:5] | passed | 0.0079 seconds |
54
- ./spec/features/strong_form_spec.rb[1:5:4:1:6] | passed | 0.00813 seconds |
55
- ./spec/features/strong_form_spec.rb[1:5:4:2:1] | passed | 0.00759 seconds |
56
- ./spec/features/strong_form_spec.rb[1:5:5:1:1] | passed | 0.01743 seconds |
57
- ./spec/models/user_spec.rb[1:1:1:1] | passed | 0.00037 seconds |
58
- ./spec/models/user_spec.rb[1:1:2:1] | passed | 0.00039 seconds |
59
- ./spec/models/user_spec.rb[1:1:2:2] | passed | 0.00567 seconds |
60
- ./spec/models/user_spec.rb[1:1:2:3] | passed | 0.00045 seconds |
61
- ./spec/models/user_spec.rb[1:1:2:4] | passed | 0.00038 seconds |
3
+ ./spec/features/strong_form_spec.rb[1:1:1:1] | passed | 0.00302 seconds |
4
+ ./spec/features/strong_form_spec.rb[1:1:1:2] | passed | 0.00316 seconds |
5
+ ./spec/features/strong_form_spec.rb[1:1:1:3] | passed | 0.00459 seconds |
6
+ ./spec/features/strong_form_spec.rb[1:1:1:4] | passed | 0.00338 seconds |
7
+ ./spec/features/strong_form_spec.rb[1:1:1:5] | passed | 0.00442 seconds |
8
+ ./spec/features/strong_form_spec.rb[1:1:2:1] | passed | 0.00677 seconds |
9
+ ./spec/features/strong_form_spec.rb[1:1:2:2] | passed | 0.02052 seconds |
10
+ ./spec/features/strong_form_spec.rb[1:1:2:3] | passed | 0.00524 seconds |
11
+ ./spec/features/strong_form_spec.rb[1:1:2:4] | passed | 0.00485 seconds |
12
+ ./spec/features/strong_form_spec.rb[1:1:2:5] | passed | 0.00562 seconds |
13
+ ./spec/features/strong_form_spec.rb[1:2:1:1:1] | passed | 0.00617 seconds |
14
+ ./spec/features/strong_form_spec.rb[1:2:1:1:2] | passed | 0.00763 seconds |
15
+ ./spec/features/strong_form_spec.rb[1:2:1:1:3] | passed | 0.00612 seconds |
16
+ ./spec/features/strong_form_spec.rb[1:2:1:1:4] | passed | 0.00501 seconds |
17
+ ./spec/features/strong_form_spec.rb[1:2:1:1:5] | passed | 0.00544 seconds |
18
+ ./spec/features/strong_form_spec.rb[1:2:1:1:6] | passed | 0.00559 seconds |
19
+ ./spec/features/strong_form_spec.rb[1:2:2:1:1] | passed | 0.00865 seconds |
20
+ ./spec/features/strong_form_spec.rb[1:2:2:1:2] | passed | 0.0057 seconds |
21
+ ./spec/features/strong_form_spec.rb[1:2:2:1:3] | passed | 0.00644 seconds |
22
+ ./spec/features/strong_form_spec.rb[1:2:2:1:4] | passed | 0.00549 seconds |
23
+ ./spec/features/strong_form_spec.rb[1:2:2:2:1] | passed | 0.00553 seconds |
24
+ ./spec/features/strong_form_spec.rb[1:2:2:2:2] | passed | 0.0083 seconds |
25
+ ./spec/features/strong_form_spec.rb[1:2:3:1:1] | passed | 0.00705 seconds |
26
+ ./spec/features/strong_form_spec.rb[1:2:3:1:2] | passed | 0.00774 seconds |
27
+ ./spec/features/strong_form_spec.rb[1:2:3:1:3] | passed | 0.00645 seconds |
28
+ ./spec/features/strong_form_spec.rb[1:2:3:1:4] | passed | 0.00631 seconds |
29
+ ./spec/features/strong_form_spec.rb[1:2:3:2:1] | passed | 0.00688 seconds |
30
+ ./spec/features/strong_form_spec.rb[1:2:3:2:2] | passed | 0.00554 seconds |
31
+ ./spec/features/strong_form_spec.rb[1:3:1] | passed | 0.00618 seconds |
32
+ ./spec/features/strong_form_spec.rb[1:3:2] | passed | 0.00777 seconds |
33
+ ./spec/features/strong_form_spec.rb[1:3:3] | passed | 0.0082 seconds |
34
+ ./spec/features/strong_form_spec.rb[1:3:4] | passed | 0.01412 seconds |
35
+ ./spec/features/strong_form_spec.rb[1:3:5] | passed | 0.00653 seconds |
36
+ ./spec/features/strong_form_spec.rb[1:3:6] | passed | 0.01169 seconds |
37
+ ./spec/features/strong_form_spec.rb[1:3:7] | passed | 0.01639 seconds |
38
+ ./spec/features/strong_form_spec.rb[1:3:8] | passed | 0.00649 seconds |
39
+ ./spec/features/strong_form_spec.rb[1:3:9] | passed | 0.00735 seconds |
40
+ ./spec/features/strong_form_spec.rb[1:4:1:1:1] | passed | 0.00812 seconds |
41
+ ./spec/features/strong_form_spec.rb[1:4:1:1:2] | passed | 0.00833 seconds |
42
+ ./spec/features/strong_form_spec.rb[1:4:2:1:1] | passed | 0.16753 seconds |
43
+ ./spec/features/strong_form_spec.rb[1:4:2:1:2] | passed | 0.01097 seconds |
44
+ ./spec/features/strong_form_spec.rb[1:5:1] | passed | 0.01248 seconds |
45
+ ./spec/features/strong_form_spec.rb[1:5:2:1:1:1] | passed | 0.01109 seconds |
46
+ ./spec/features/strong_form_spec.rb[1:5:2:1:1:2] | passed | 0.00901 seconds |
47
+ ./spec/features/strong_form_spec.rb[1:5:2:1:2:1] | passed | 0.00946 seconds |
48
+ ./spec/features/strong_form_spec.rb[1:5:2:1:2:2] | passed | 0.01154 seconds |
49
+ ./spec/features/strong_form_spec.rb[1:5:2:1:3] | passed | 0.00859 seconds |
50
+ ./spec/features/strong_form_spec.rb[1:5:2:2:1] | passed | 0.00928 seconds |
51
+ ./spec/features/strong_form_spec.rb[1:5:3:1:1] | passed | 0.01441 seconds |
52
+ ./spec/features/strong_form_spec.rb[1:5:3:1:2] | passed | 0.00924 seconds |
53
+ ./spec/features/strong_form_spec.rb[1:5:3:2:1] | passed | 0.00809 seconds |
54
+ ./spec/features/strong_form_spec.rb[1:5:4:1:1] | passed | 0.01342 seconds |
55
+ ./spec/features/strong_form_spec.rb[1:5:4:1:2] | passed | 0.01133 seconds |
56
+ ./spec/features/strong_form_spec.rb[1:5:4:1:3] | passed | 0.0131 seconds |
57
+ ./spec/features/strong_form_spec.rb[1:5:4:1:4] | passed | 0.00837 seconds |
58
+ ./spec/features/strong_form_spec.rb[1:5:4:1:5] | passed | 0.00864 seconds |
59
+ ./spec/features/strong_form_spec.rb[1:5:4:1:6] | passed | 0.01388 seconds |
60
+ ./spec/features/strong_form_spec.rb[1:5:4:2:1] | passed | 0.01113 seconds |
61
+ ./spec/features/strong_form_spec.rb[1:5:5:1:1] | passed | 0.00801 seconds |
62
+ ./spec/models/user_spec.rb[1:1:1:1] | passed | 0.00108 seconds |
63
+ ./spec/models/user_spec.rb[1:1:2:1] | passed | 0.0004 seconds |
64
+ ./spec/models/user_spec.rb[1:1:2:2] | passed | 0.00031 seconds |
65
+ ./spec/models/user_spec.rb[1:1:2:3] | passed | 0.00046 seconds |
66
+ ./spec/models/user_spec.rb[1:1:2:4] | passed | 0.00031 seconds |
@@ -179,6 +179,22 @@ RSpec.describe 'strong form' do
179
179
  .to be_truthy
180
180
  end
181
181
  end
182
+
183
+ it 'enables explicitly passed permitted attributes of child\'s child' do
184
+ expect(page.find(
185
+ '[name="user[addresses_attributes][0][user_attributes][last_name]"]'
186
+ )[:disabled])
187
+ .to be_falsy
188
+ end
189
+
190
+ (all_user_attributes - [:last_name]).each do |attr|
191
+ it 'disables not explicitly passed permitted attributes of child\'s child' do
192
+ expect(page.find(
193
+ "[name='user[addresses_attributes][0][user_attributes][#{attr}]']"
194
+ )[:disabled])
195
+ .to be_truthy
196
+ end
197
+ end
182
198
  end
183
199
 
184
200
  describe 'deeply nested form' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strong_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Doits