parsley_simple_form 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjUwMWNjY2U1ZTEzNzEyZTA3M2YwNDNlNjYxZjFjN2JjZjZiZjNjOQ==
4
+ MDE4MGRhZDg3YTY3ZDBkZmY2ODk1YzBiNDM2MDk1NWZjYzIyOWVjNQ==
5
5
  data.tar.gz: !binary |-
6
- ZWYzZWQ0OTNhYTUzOWFlNDRiODY5NTEyZTEyYTc4MGEzNzg5ZmI1Mw==
6
+ MzBhNzFmMzM3ZTYyZDI0MjgzZjRjM2Y3OWE5MmNkZjdkN2ZjNzY3YQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTgzNTljYmZmOGM0MTAxMTQ4NzZjNzMxNDBjYzNjYmMzNWQ3ZTcxNDMyZGNh
10
- OTkxOWUwZDg1N2JmNjEwMmQwYTE2NzRmODlmNTZkOTg0ZDY0Yjg5YjYwODBm
11
- MDljZDY5Y2I0ZGI4MzNmNTIxOGZmZWY3Y2VlN2ZhOWZiNWRhMTE=
9
+ MmQ1NzIxMWFhZjRjMWE4ODRjOTZkMWFiNGE2ZmVjOWFhZDUzMTMyMDA4NGQz
10
+ OTZiZDc5MTFmZTZkODVmZWU1Mjk0MGFkYWFlOWQxOTZjODkzMmFhODRiYzA2
11
+ YjM1YjEyYTNhMWE0MTE3ZDI4NjFjZjdmNDUxZjllODUwOWU0ZDI=
12
12
  data.tar.gz: !binary |-
13
- ZTA0M2NiMjFiMTVkNGNkOTAzMTc0ZGYyZWIwZDEwZGZiNjEzM2U5ODE0OTky
14
- Y2Q2NGRiNWY2ZTFhYjQ0MGI3M2Q1YTQzZGMzMWY3NjkyMzY3YmYyNmFhZGY3
15
- MGM2Y2RmOTBmZWUyZmNiZTRlNTdiYmNjYmViMzc4NGRjMDBiNDg=
13
+ YzhjNjEyZWFhZGI5OGVjMTUzMWRlOTkyOWEzY2UyYzNhZWJjY2YzNzI2YTI0
14
+ ZDIwNTMwMjJkMDUyZDdjZmNmOGZhNjhmNTNmM2JmMmVjZDc2YzVjN2RlNjQ1
15
+ ZTMzMjkzYjgyZjFlMjhmOWYwMzQ3ZGZhZmZkMWM3ODE3YjRjNjY=
@@ -6,6 +6,7 @@ module ParsleySimpleForm
6
6
  options[:builder] = ParsleySimpleForm::FormBuilder
7
7
  options[:html] = {} if options[:html].nil?
8
8
  options[:html][:"data-validate"] = "parsley"
9
+ options[:html][:novalidate] = true
9
10
  simple_form_for(object, *(args << options), &block)
10
11
  end
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module ParsleySimpleForm
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -148,3 +148,93 @@ Connecting to database specified by database.yml
148
148
   (0.0ms) rollback transaction
149
149
   (0.0ms) begin transaction
150
150
   (0.0ms) rollback transaction
151
+ Connecting to database specified by database.yml
152
+  (0.2ms) begin transaction
153
+  (0.1ms) rollback transaction
154
+  (0.0ms) begin transaction
155
+  (0.0ms) rollback transaction
156
+  (0.0ms) begin transaction
157
+  (0.0ms) rollback transaction
158
+  (0.0ms) begin transaction
159
+  (0.0ms) rollback transaction
160
+ Connecting to database specified by database.yml
161
+  (0.3ms) begin transaction
162
+  (0.1ms) rollback transaction
163
+  (0.1ms) begin transaction
164
+  (0.1ms) rollback transaction
165
+  (0.0ms) begin transaction
166
+  (0.0ms) rollback transaction
167
+  (0.0ms) begin transaction
168
+  (0.0ms) rollback transaction
169
+ Connecting to database specified by database.yml
170
+  (0.2ms) begin transaction
171
+  (0.1ms) rollback transaction
172
+  (0.0ms) begin transaction
173
+  (0.1ms) rollback transaction
174
+  (0.0ms) begin transaction
175
+  (0.0ms) rollback transaction
176
+  (0.0ms) begin transaction
177
+  (0.0ms) rollback transaction
178
+ Connecting to database specified by database.yml
179
+  (0.2ms) begin transaction
180
+  (0.1ms) rollback transaction
181
+  (0.0ms) begin transaction
182
+  (0.1ms) rollback transaction
183
+  (0.0ms) begin transaction
184
+  (0.0ms) rollback transaction
185
+  (0.0ms) begin transaction
186
+  (0.0ms) rollback transaction
187
+ Connecting to database specified by database.yml
188
+  (0.2ms) begin transaction
189
+  (0.1ms) rollback transaction
190
+  (0.0ms) begin transaction
191
+  (0.0ms) rollback transaction
192
+  (0.0ms) begin transaction
193
+  (0.0ms) rollback transaction
194
+  (0.0ms) begin transaction
195
+  (0.0ms) rollback transaction
196
+ Connecting to database specified by database.yml
197
+  (0.2ms) begin transaction
198
+  (0.1ms) rollback transaction
199
+  (0.0ms) begin transaction
200
+  (0.1ms) rollback transaction
201
+  (0.0ms) begin transaction
202
+  (0.0ms) rollback transaction
203
+  (0.0ms) begin transaction
204
+  (0.0ms) rollback transaction
205
+ Connecting to database specified by database.yml
206
+  (0.2ms) begin transaction
207
+  (0.1ms) rollback transaction
208
+  (0.0ms) begin transaction
209
+  (0.0ms) rollback transaction
210
+  (0.0ms) begin transaction
211
+  (0.0ms) rollback transaction
212
+  (0.0ms) begin transaction
213
+  (0.0ms) rollback transaction
214
+ Connecting to database specified by database.yml
215
+  (0.2ms) begin transaction
216
+  (0.1ms) rollback transaction
217
+  (0.0ms) begin transaction
218
+  (0.1ms) rollback transaction
219
+  (0.0ms) begin transaction
220
+  (0.0ms) rollback transaction
221
+  (0.0ms) begin transaction
222
+  (0.0ms) rollback transaction
223
+ Connecting to database specified by database.yml
224
+  (0.2ms) begin transaction
225
+  (0.1ms) rollback transaction
226
+  (0.0ms) begin transaction
227
+  (0.1ms) rollback transaction
228
+  (0.0ms) begin transaction
229
+  (0.0ms) rollback transaction
230
+  (0.0ms) begin transaction
231
+  (0.0ms) rollback transaction
232
+ Connecting to database specified by database.yml
233
+  (0.2ms) begin transaction
234
+  (0.1ms) rollback transaction
235
+  (0.0ms) begin transaction
236
+  (0.1ms) rollback transaction
237
+  (0.0ms) begin transaction
238
+  (0.0ms) rollback transaction
239
+  (0.0ms) begin transaction
240
+  (0.0ms) rollback transaction
@@ -7,4 +7,12 @@ class FormHelperTest < ActionView::TestCase
7
7
  assert f.instance_of?(ParsleySimpleForm::FormBuilder)
8
8
  end
9
9
  end
10
+
11
+ test 'form attribute novalidate as true' do
12
+ with_parsley_form_for @user do |f|
13
+ f.input :name
14
+ end
15
+ assert_select 'form[novalidate]'
16
+ end
17
+
10
18
  end
data/test/test_helper.rb CHANGED
@@ -39,6 +39,10 @@ class ActionView::TestCase
39
39
 
40
40
  setup :setup_users
41
41
 
42
+ def with_parsley_form_for(*args, &block)
43
+ concat parsley_form_for(*args, &(block || proc {}))
44
+ end
45
+
42
46
  def protect_against_forgery?
43
47
  false
44
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsley_simple_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
  - Guilherme Moretti