strong_form 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/spec/examples.txt CHANGED
@@ -1,52 +1,55 @@
1
- example_id | status | run_time |
2
- ---------------------------------------------- | ------ | --------------- |
3
- ./spec/features/strong_form_spec.rb[1:1:1:1] | passed | 0.00347 seconds |
4
- ./spec/features/strong_form_spec.rb[1:1:1:2] | passed | 0.00362 seconds |
5
- ./spec/features/strong_form_spec.rb[1:1:1:3] | passed | 0.00354 seconds |
6
- ./spec/features/strong_form_spec.rb[1:1:1:4] | passed | 0.00366 seconds |
7
- ./spec/features/strong_form_spec.rb[1:1:2:1] | passed | 0.00479 seconds |
8
- ./spec/features/strong_form_spec.rb[1:1:2:2] | passed | 0.14378 seconds |
9
- ./spec/features/strong_form_spec.rb[1:1:2:3] | passed | 0.00388 seconds |
10
- ./spec/features/strong_form_spec.rb[1:1:2:4] | passed | 0.00408 seconds |
11
- ./spec/features/strong_form_spec.rb[1:2:1:1:1] | passed | 0.00576 seconds |
12
- ./spec/features/strong_form_spec.rb[1:2:1:1:2] | passed | 0.00599 seconds |
13
- ./spec/features/strong_form_spec.rb[1:2:1:1:3] | passed | 0.00628 seconds |
14
- ./spec/features/strong_form_spec.rb[1:2:1:1:4] | passed | 0.00593 seconds |
15
- ./spec/features/strong_form_spec.rb[1:2:1:1:5] | passed | 0.00586 seconds |
16
- ./spec/features/strong_form_spec.rb[1:2:1:1:6] | passed | 0.00583 seconds |
17
- ./spec/features/strong_form_spec.rb[1:2:2:1:1] | passed | 0.00649 seconds |
18
- ./spec/features/strong_form_spec.rb[1:2:2:1:2] | passed | 0.00675 seconds |
19
- ./spec/features/strong_form_spec.rb[1:2:2:1:3] | passed | 0.00602 seconds |
20
- ./spec/features/strong_form_spec.rb[1:2:2:1:4] | passed | 0.03 seconds |
21
- ./spec/features/strong_form_spec.rb[1:2:2:2:1] | passed | 0.00754 seconds |
22
- ./spec/features/strong_form_spec.rb[1:2:2:2:2] | passed | 0.00761 seconds |
23
- ./spec/features/strong_form_spec.rb[1:2:3:1:1] | passed | 0.0061 seconds |
24
- ./spec/features/strong_form_spec.rb[1:2:3:1:2] | passed | 0.00794 seconds |
25
- ./spec/features/strong_form_spec.rb[1:2:3:1:3] | passed | 0.00648 seconds |
26
- ./spec/features/strong_form_spec.rb[1:2:3:1:4] | passed | 0.00688 seconds |
27
- ./spec/features/strong_form_spec.rb[1:2:3:2:1] | passed | 0.00628 seconds |
28
- ./spec/features/strong_form_spec.rb[1:2:3:2:2] | passed | 0.00641 seconds |
29
- ./spec/features/strong_form_spec.rb[1:3:1:1:1] | passed | 0.0104 seconds |
30
- ./spec/features/strong_form_spec.rb[1:3:1:1:2] | passed | 0.01235 seconds |
31
- ./spec/features/strong_form_spec.rb[1:3:2:1:1] | passed | 0.01065 seconds |
32
- ./spec/features/strong_form_spec.rb[1:3:2:1:2] | passed | 0.00964 seconds |
33
- ./spec/features/strong_form_spec.rb[1:4:1] | passed | 0.00881 seconds |
34
- ./spec/features/strong_form_spec.rb[1:4:2:1:1] | passed | 0.00892 seconds |
35
- ./spec/features/strong_form_spec.rb[1:4:2:1:2] | passed | 0.00898 seconds |
36
- ./spec/features/strong_form_spec.rb[1:4:2:2:1] | passed | 0.00937 seconds |
37
- ./spec/features/strong_form_spec.rb[1:4:3:1:1] | passed | 0.00824 seconds |
38
- ./spec/features/strong_form_spec.rb[1:4:3:1:2] | passed | 0.01065 seconds |
39
- ./spec/features/strong_form_spec.rb[1:4:3:2:1] | passed | 0.01426 seconds |
40
- ./spec/features/strong_form_spec.rb[1:4:4:1:1] | passed | 0.00833 seconds |
41
- ./spec/features/strong_form_spec.rb[1:4:4:1:2] | passed | 0.00957 seconds |
42
- ./spec/features/strong_form_spec.rb[1:4:4:1:3] | passed | 0.00933 seconds |
43
- ./spec/features/strong_form_spec.rb[1:4:4:1:4] | passed | 0.0092 seconds |
44
- ./spec/features/strong_form_spec.rb[1:4:4:1:5] | passed | 0.00932 seconds |
45
- ./spec/features/strong_form_spec.rb[1:4:4:1:6] | passed | 0.00863 seconds |
46
- ./spec/features/strong_form_spec.rb[1:4:4:2:1] | passed | 0.00875 seconds |
47
- ./spec/features/strong_form_spec.rb[1:4:5:1:1] | passed | 0.02441 seconds |
48
- ./spec/models/user_spec.rb[1:1:1:1] | passed | 0.00069 seconds |
49
- ./spec/models/user_spec.rb[1:1:2:1] | passed | 0.00037 seconds |
50
- ./spec/models/user_spec.rb[1:1:2:2] | passed | 0.00035 seconds |
51
- ./spec/models/user_spec.rb[1:1:2:3] | passed | 0.00074 seconds |
52
- ./spec/models/user_spec.rb[1:1:2:4] | passed | 0.00139 seconds |
1
+ example_id | status | run_time |
2
+ ------------------------------------------------ | ------ | --------------- |
3
+ ./spec/features/strong_form_spec.rb[1:1:1:1] | passed | 0.00477 seconds |
4
+ ./spec/features/strong_form_spec.rb[1:1:1:2] | passed | 0.00326 seconds |
5
+ ./spec/features/strong_form_spec.rb[1:1:1:3] | passed | 0.00329 seconds |
6
+ ./spec/features/strong_form_spec.rb[1:1:1:4] | passed | 0.0033 seconds |
7
+ ./spec/features/strong_form_spec.rb[1:1:2:1] | passed | 0.0043 seconds |
8
+ ./spec/features/strong_form_spec.rb[1:1:2:2] | passed | 0.00409 seconds |
9
+ ./spec/features/strong_form_spec.rb[1:1:2:3] | passed | 0.00529 seconds |
10
+ ./spec/features/strong_form_spec.rb[1:1:2:4] | passed | 0.00749 seconds |
11
+ ./spec/features/strong_form_spec.rb[1:2:1:1:1] | passed | 0.00672 seconds |
12
+ ./spec/features/strong_form_spec.rb[1:2:1:1:2] | passed | 0.0089 seconds |
13
+ ./spec/features/strong_form_spec.rb[1:2:1:1:3] | passed | 0.00926 seconds |
14
+ ./spec/features/strong_form_spec.rb[1:2:1:1:4] | passed | 0.00816 seconds |
15
+ ./spec/features/strong_form_spec.rb[1:2:1:1:5] | passed | 0.00754 seconds |
16
+ ./spec/features/strong_form_spec.rb[1:2:1:1:6] | passed | 0.00908 seconds |
17
+ ./spec/features/strong_form_spec.rb[1:2:2:1:1] | passed | 0.00663 seconds |
18
+ ./spec/features/strong_form_spec.rb[1:2:2:1:2] | passed | 0.00595 seconds |
19
+ ./spec/features/strong_form_spec.rb[1:2:2:1:3] | passed | 0.00786 seconds |
20
+ ./spec/features/strong_form_spec.rb[1:2:2:1:4] | passed | 0.00586 seconds |
21
+ ./spec/features/strong_form_spec.rb[1:2:2:2:1] | passed | 0.00666 seconds |
22
+ ./spec/features/strong_form_spec.rb[1:2:2:2:2] | passed | 0.01 seconds |
23
+ ./spec/features/strong_form_spec.rb[1:2:3:1:1] | passed | 0.00663 seconds |
24
+ ./spec/features/strong_form_spec.rb[1:2:3:1:2] | passed | 0.00587 seconds |
25
+ ./spec/features/strong_form_spec.rb[1:2:3:1:3] | passed | 0.00628 seconds |
26
+ ./spec/features/strong_form_spec.rb[1:2:3:1:4] | passed | 0.00633 seconds |
27
+ ./spec/features/strong_form_spec.rb[1:2:3:2:1] | passed | 0.00796 seconds |
28
+ ./spec/features/strong_form_spec.rb[1:2:3:2:2] | passed | 0.02549 seconds |
29
+ ./spec/features/strong_form_spec.rb[1:3:1:1:1] | passed | 0.0081 seconds |
30
+ ./spec/features/strong_form_spec.rb[1:3:1:1:2] | passed | 0.00648 seconds |
31
+ ./spec/features/strong_form_spec.rb[1:3:2:1:1] | passed | 0.1627 seconds |
32
+ ./spec/features/strong_form_spec.rb[1:3:2:1:2] | passed | 0.00913 seconds |
33
+ ./spec/features/strong_form_spec.rb[1:4:1] | passed | 0.01003 seconds |
34
+ ./spec/features/strong_form_spec.rb[1:4:2:1:1:1] | passed | 0.00708 seconds |
35
+ ./spec/features/strong_form_spec.rb[1:4:2:1:1:2] | passed | 0.00698 seconds |
36
+ ./spec/features/strong_form_spec.rb[1:4:2:1:2:1] | passed | 0.0097 seconds |
37
+ ./spec/features/strong_form_spec.rb[1:4:2:1:2:2] | passed | 0.01332 seconds |
38
+ ./spec/features/strong_form_spec.rb[1:4:2:1:3] | passed | 0.00823 seconds |
39
+ ./spec/features/strong_form_spec.rb[1:4:2:2:1] | passed | 0.0082 seconds |
40
+ ./spec/features/strong_form_spec.rb[1:4:3:1:1] | passed | 0.00995 seconds |
41
+ ./spec/features/strong_form_spec.rb[1:4:3:1:2] | passed | 0.01124 seconds |
42
+ ./spec/features/strong_form_spec.rb[1:4:3:2:1] | passed | 0.00934 seconds |
43
+ ./spec/features/strong_form_spec.rb[1:4:4:1:1] | passed | 0.01473 seconds |
44
+ ./spec/features/strong_form_spec.rb[1:4:4:1:2] | passed | 0.01693 seconds |
45
+ ./spec/features/strong_form_spec.rb[1:4:4:1:3] | passed | 0.00802 seconds |
46
+ ./spec/features/strong_form_spec.rb[1:4:4:1:4] | passed | 0.01345 seconds |
47
+ ./spec/features/strong_form_spec.rb[1:4:4:1:5] | passed | 0.00991 seconds |
48
+ ./spec/features/strong_form_spec.rb[1:4:4:1:6] | passed | 0.01141 seconds |
49
+ ./spec/features/strong_form_spec.rb[1:4:4:2:1] | passed | 0.01324 seconds |
50
+ ./spec/features/strong_form_spec.rb[1:4:5:1:1] | passed | 0.00958 seconds |
51
+ ./spec/models/user_spec.rb[1:1:1:1] | passed | 0.00053 seconds |
52
+ ./spec/models/user_spec.rb[1:1:2:1] | passed | 0.00035 seconds |
53
+ ./spec/models/user_spec.rb[1:1:2:2] | passed | 0.00146 seconds |
54
+ ./spec/models/user_spec.rb[1:1:2:3] | passed | 0.00046 seconds |
55
+ ./spec/models/user_spec.rb[1:1:2:4] | passed | 0.00053 seconds |
@@ -206,7 +206,8 @@ RSpec.describe 'strong form' do
206
206
  end
207
207
 
208
208
  describe 'nested form gem' do
209
- subject { visit '/nested_form_gem' }
209
+ let(:extra_params) { {} }
210
+ subject { visit('/nested_form_gem?' + extra_params.to_query) }
210
211
 
211
212
  it 'should work' do
212
213
  subject
@@ -216,9 +217,29 @@ RSpec.describe 'strong form' do
216
217
  before(:each) { subject }
217
218
 
218
219
  describe 'link to add' do
219
- it 'should be displayed' do
220
- expect(page)
221
- .to have_selector('[data-blueprint-id="addresses_fields_blueprint"]')
220
+ context 'with block syntax' do
221
+ it 'should be displayed' do
222
+ expect(page)
223
+ .to have_selector('[data-blueprint-id="addresses_fields_blueprint"]')
224
+ end
225
+
226
+ it 'should have extra html attributes' do
227
+ expect(page.find('[data-blueprint-id="addresses_fields_blueprint"]')[:bla])
228
+ .to eql('blub')
229
+ end
230
+ end
231
+
232
+ context 'without block syntax' do
233
+ let(:extra_params) { { inline_link_to_add: true } }
234
+ it 'should be displayed' do
235
+ expect(page)
236
+ .to have_selector('[data-blueprint-id="addresses_fields_blueprint"]')
237
+ end
238
+
239
+ it 'should have extra html attributes' do
240
+ expect(page.find('[data-blueprint-id="addresses_fields_blueprint"]')[:bla])
241
+ .to eql('blub')
242
+ end
222
243
  end
223
244
 
224
245
  it 'blueprint should not have disabled fields' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strong_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Doits
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-28 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -116,6 +116,7 @@ extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
118
  - AGPL-LICENSE
119
+ - README.md
119
120
  - Rakefile
120
121
  - lib/strong_form.rb
121
122
  - lib/strong_form/finder.rb