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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/strong_form/form.rb +12 -18
- data/lib/strong_form/version.rb +1 -1
- data/spec/dummy/app/models/address.rb +1 -0
- data/spec/dummy/app/views/base/fields_for_explicit.html.haml +4 -1
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/log/test.log +5662 -0
- data/spec/examples.txt +64 -59
- data/spec/features/strong_form_spec.rb +16 -0
- metadata +1 -1
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.
|
4
|
-
./spec/features/strong_form_spec.rb[1:1:1:2] | passed | 0.
|
5
|
-
./spec/features/strong_form_spec.rb[1:1:1:3] | passed | 0.
|
6
|
-
./spec/features/strong_form_spec.rb[1:1:1:4] | passed | 0.
|
7
|
-
./spec/features/strong_form_spec.rb[1:1:1:5] | passed | 0.
|
8
|
-
./spec/features/strong_form_spec.rb[1:1:2:1] | passed | 0.
|
9
|
-
./spec/features/strong_form_spec.rb[1:1:2:2] | passed | 0.
|
10
|
-
./spec/features/strong_form_spec.rb[1:1:2:3] | passed | 0.
|
11
|
-
./spec/features/strong_form_spec.rb[1:1:2:4] | passed | 0.
|
12
|
-
./spec/features/strong_form_spec.rb[1:1:2:5] | passed | 0.
|
13
|
-
./spec/features/strong_form_spec.rb[1:2:1:1:1] | passed | 0.
|
14
|
-
./spec/features/strong_form_spec.rb[1:2:1:1:2] | passed | 0.
|
15
|
-
./spec/features/strong_form_spec.rb[1:2:1:1:3] | passed | 0.
|
16
|
-
./spec/features/strong_form_spec.rb[1:2:1:1:4] | passed | 0.
|
17
|
-
./spec/features/strong_form_spec.rb[1:2:1:1:5] | passed | 0.
|
18
|
-
./spec/features/strong_form_spec.rb[1:2:1:1:6] | passed | 0.
|
19
|
-
./spec/features/strong_form_spec.rb[1:2:2:1:1] | passed | 0.
|
20
|
-
./spec/features/strong_form_spec.rb[1:2:2:1:2] | passed | 0.
|
21
|
-
./spec/features/strong_form_spec.rb[1:2:2:1:3] | passed | 0.
|
22
|
-
./spec/features/strong_form_spec.rb[1:2:2:1:4] | passed | 0.
|
23
|
-
./spec/features/strong_form_spec.rb[1:2:2:2:1] | passed | 0.
|
24
|
-
./spec/features/strong_form_spec.rb[1:2:2:2:2] | passed | 0.
|
25
|
-
./spec/features/strong_form_spec.rb[1:2:3:1:1] | passed | 0.
|
26
|
-
./spec/features/strong_form_spec.rb[1:2:3:1:2] | passed | 0.
|
27
|
-
./spec/features/strong_form_spec.rb[1:2:3:1:3] | passed | 0.
|
28
|
-
./spec/features/strong_form_spec.rb[1:2:3:1:4] | passed | 0.
|
29
|
-
./spec/features/strong_form_spec.rb[1:2:3:2:1] | passed | 0.
|
30
|
-
./spec/features/strong_form_spec.rb[1:2:3:2:2] | passed | 0.
|
31
|
-
./spec/features/strong_form_spec.rb[1:3:1] | passed | 0.
|
32
|
-
./spec/features/strong_form_spec.rb[1:3:2] | passed | 0.
|
33
|
-
./spec/features/strong_form_spec.rb[1:3:3] | passed | 0.
|
34
|
-
./spec/features/strong_form_spec.rb[1:3:4] | passed | 0.
|
35
|
-
./spec/features/strong_form_spec.rb[1:
|
36
|
-
./spec/features/strong_form_spec.rb[1:
|
37
|
-
./spec/features/strong_form_spec.rb[1:
|
38
|
-
./spec/features/strong_form_spec.rb[1:
|
39
|
-
./spec/features/strong_form_spec.rb[1:
|
40
|
-
./spec/features/strong_form_spec.rb[1:
|
41
|
-
./spec/features/strong_form_spec.rb[1:
|
42
|
-
./spec/features/strong_form_spec.rb[1:
|
43
|
-
./spec/features/strong_form_spec.rb[1:
|
44
|
-
./spec/features/strong_form_spec.rb[1:5:
|
45
|
-
./spec/features/strong_form_spec.rb[1:5:2:
|
46
|
-
./spec/features/strong_form_spec.rb[1:5:
|
47
|
-
./spec/features/strong_form_spec.rb[1:5:
|
48
|
-
./spec/features/strong_form_spec.rb[1:5:
|
49
|
-
./spec/features/strong_form_spec.rb[1:5:
|
50
|
-
./spec/features/strong_form_spec.rb[1:5:
|
51
|
-
./spec/features/strong_form_spec.rb[1:5:
|
52
|
-
./spec/features/strong_form_spec.rb[1:5:
|
53
|
-
./spec/features/strong_form_spec.rb[1:5:
|
54
|
-
./spec/features/strong_form_spec.rb[1:5:4:1:
|
55
|
-
./spec/features/strong_form_spec.rb[1:5:4:2
|
56
|
-
./spec/features/strong_form_spec.rb[1:5:
|
57
|
-
./spec/
|
58
|
-
./spec/
|
59
|
-
./spec/
|
60
|
-
./spec/
|
61
|
-
./spec/
|
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
|