padrino-helpers 0.13.1.beta1 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3fdcc6a81ec716ac04cd1d695ccf508e3582370
4
- data.tar.gz: a27d8a7a4ac6fef846b9a9771648a84c11761948
3
+ metadata.gz: 4ccbe094ccc953205bf65d9ddc14ccfb525603bf
4
+ data.tar.gz: 8a332393574602aa2edf8bc1ccfae65d15aa40b3
5
5
  SHA512:
6
- metadata.gz: a880544ead387a3d35c51d01ca87e557de0920fc26d54254cba74ce414c432d6dd15796aca907e5bb050cde172737cb9d54858eae7b45bdd6fd39b62288492eb
7
- data.tar.gz: 3e20fcc06fad879fc834bcdcaf22b620e4768a42ce156c61d8298333631043314a18f4dec4a6886a1b7eafdd61c9fb572f082318272058d94b7e57a6792af727
6
+ metadata.gz: 1291b958e521faa721462f183cf6ad992a36602398237efc2e11a8d0c4c03c2965b6f51fb40f8732f2e37e40ced0428ad50dfeabc45ae4212b8a94f1c94bdcff
7
+ data.tar.gz: 4fe10e8cd44419b3bf395b952f9017ec644744a5a4bc47f176dc680772f4bb1bdee575180eebe012d0111ace47073921528f9722b60456228b764dbdd1b8f18f
@@ -26,7 +26,7 @@ describe "AssetTagHelpers" do
26
26
  actual_html = flash_tag(:success, :warning, :error, :id => 'area')
27
27
  assert_has_tag('div.success#area', :content => flash[:success]) { actual_html }
28
28
  assert_has_tag('div.error#area', :content => flash[:error]) { actual_html }
29
- assert_has_no_tag('div.notice') { actual_html }
29
+ assert_has_no_tag('div.warning') { actual_html }
30
30
  end
31
31
  end
32
32
 
@@ -209,7 +209,7 @@ describe "FormBuilder" do
209
209
  describe 'for #error_messages method' do
210
210
  it 'should display correct form html with no record' do
211
211
  actual_html = standard_builder(@user_none).error_messages(:header_message => "Demo form cannot be saved")
212
- assert actual_html.blank?
212
+ assert_empty actual_html
213
213
  end
214
214
 
215
215
  it 'should display correct form html with valid record' do
@@ -264,7 +264,7 @@ describe "FormBuilder" do
264
264
  describe 'for #error_message_on method' do
265
265
  it 'should display correct form html with no record' do
266
266
  actual_html = standard_builder(@user_none).error_message_on(:name)
267
- assert actual_html.blank?
267
+ assert_empty actual_html
268
268
  end
269
269
 
270
270
  it 'should display error for specified invalid object' do
@@ -22,6 +22,7 @@ describe "FormHelpers" do
22
22
  it 'should display correct text inputs within form_tag' do
23
23
  actual_html = form_tag('/register', :"accept-charset" => "UTF-8", :class => 'test') { text_field_tag(:username) }
24
24
  assert_has_tag('form input', :type => 'text', :name => "username") { actual_html }
25
+ assert_has_no_tag('form input', :type => 'hidden', :name => "_method") { actual_html }
25
26
  end
26
27
 
27
28
  it 'should display correct form with remote' do
@@ -161,7 +162,7 @@ describe "FormHelpers" do
161
162
 
162
163
  describe 'for #error_messages_for method' do
163
164
  it 'should display correct error messages list in ruby' do
164
- user = mock_model("User", :errors => { :a => "1", :b => "2" }, :blank? => false)
165
+ user = mock_model("User", :errors => { :a => "1", :b => "2" })
165
166
  actual_html = error_messages_for(user)
166
167
  assert_has_tag('div.field-errors') { actual_html }
167
168
  assert_has_tag('div.field-errors h2', :content => "2 errors prohibited this User from being saved") { actual_html }
@@ -215,27 +216,27 @@ describe "FormHelpers" do
215
216
 
216
217
  describe 'for #error_message_on method' do
217
218
  it 'should display correct error message on specified model name in ruby' do
218
- @user = mock_model("User", :errors => { :a => "1", :b => "2" }, :blank? => false)
219
+ @user = mock_model("User", :errors => { :a => "1", :b => "2" })
219
220
  actual_html = error_message_on(:user, :a, :prepend => "foo", :append => "bar")
220
221
  assert_has_tag('span.error', :content => "foo 1 bar") { actual_html }
221
222
  end
222
223
 
223
224
  it 'should display correct error message on specified object in ruby' do
224
- @bob = mock_model("User", :errors => { :a => "1", :b => "2" }, :blank? => false)
225
+ @bob = mock_model("User", :errors => { :a => "1", :b => "2" })
225
226
  actual_html = error_message_on(@bob, :a, :prepend => "foo", :append => "bar")
226
227
  assert_has_tag('span.error', :content => "foo 1 bar") { actual_html }
227
228
  end
228
229
 
229
230
  it 'should display no message when error is not present' do
230
- @user = mock_model("User", :errors => { :a => "1", :b => "2" }, :blank? => false)
231
+ @user = mock_model("User", :errors => { :a => "1", :b => "2" })
231
232
  actual_html = error_message_on(:user, :fake, :prepend => "foo", :append => "bar")
232
- assert actual_html.blank?
233
+ assert_empty actual_html
233
234
  end
234
235
 
235
236
  it 'should display no message when error is not present in an Array' do
236
- @user = mock_model("User", :errors => { :a => [], :b => "2" }, :blank? => false)
237
+ @user = mock_model("User", :errors => { :a => [], :b => "2" })
237
238
  actual_html = error_message_on(:user, :a, :prepend => "foo", :append => "bar")
238
- assert actual_html.blank?
239
+ assert_empty actual_html
239
240
  end
240
241
  end
241
242
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1.beta1
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-10-18 00:00:00.000000000 Z
14
+ date: 2016-01-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-support
@@ -19,46 +19,46 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.13.1.beta1
22
+ version: 0.13.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.13.1.beta1
29
+ version: 0.13.1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: tilt
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - "~>"
34
+ - - ~>
35
35
  - !ruby/object:Gem::Version
36
36
  version: 1.4.1
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "~>"
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
43
  version: 1.4.1
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: i18n
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - "~>"
48
+ - - ~>
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0.6'
51
- - - ">="
51
+ - - '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: 0.6.7
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ~>
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0.6'
61
- - - ">="
61
+ - - '>='
62
62
  - !ruby/object:Gem::Version
63
63
  version: 0.6.7
64
64
  description: Tag helpers, asset helpers, form helpers, form builders and many more
@@ -69,9 +69,9 @@ extensions: []
69
69
  extra_rdoc_files:
70
70
  - README.rdoc
71
71
  files:
72
- - ".document"
73
- - ".gitignore"
74
- - ".yardopts"
72
+ - .document
73
+ - .gitignore
74
+ - .yardopts
75
75
  - LICENSE.txt
76
76
  - README.rdoc
77
77
  - Rakefile
@@ -224,19 +224,19 @@ licenses:
224
224
  metadata: {}
225
225
  post_install_message:
226
226
  rdoc_options:
227
- - "--charset=UTF-8"
227
+ - --charset=UTF-8
228
228
  require_paths:
229
229
  - lib
230
230
  required_ruby_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
- - - ">="
232
+ - - '>='
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  requirements:
237
- - - ">"
237
+ - - '>='
238
238
  - !ruby/object:Gem::Version
239
- version: 1.3.1
239
+ version: 1.3.6
240
240
  requirements: []
241
241
  rubyforge_project: padrino-helpers
242
242
  rubygems_version: 2.4.8