merb-helpers 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/spec/merb_helpers_form_spec.rb +3 -3
  2. metadata +3 -3
@@ -745,7 +745,7 @@ describe "radio_group" do
745
745
  radio = @c.render :hash
746
746
  radio.scan( /<input.*?><label.*?>(Five|Bar)<\/label>/ ).size.should == 2
747
747
  radio.scan(/<[^>]*>/).size.should == 6
748
- radio.should match_tag(:input, :value => 5)
748
+ radio.should match_tag(:input, :value => '5')
749
749
  radio.should match_tag(:label)
750
750
  radio.should match_tag(:input, :value => 'bar', :id => 'bar_id')
751
751
  radio.should match_tag(:label, :for => 'bar_id')
@@ -809,7 +809,7 @@ describe "bound_radio_group" do
809
809
  r = @c.render :hashes
810
810
  r.scan( /<input.*?><label.*?>(Five|Bar)<\/label>/ ).size.should == 2
811
811
  r.scan(/<[^>]*>/)[2..-2].size.should == 6
812
- r.should match_tag(:input, :value => 5)
812
+ r.should match_tag(:input, :value => '5')
813
813
  r.should match_tag(:label)
814
814
  r.should match_tag(:input, :value => 'bar', :id => 'bar_id')
815
815
  r.should match_tag(:label, :for => 'bar_id')
@@ -1080,7 +1080,7 @@ describe "option tags" do
1080
1080
  it "should provide selected options by value" do
1081
1081
  r = @c.render :selected
1082
1082
  r.should match_tag( :option, :value => 'rabbit', :selected => 'selected', :content => 'Rabbit' )
1083
- r.should_not match_tag( :option, :value => 'chicken', :selected => nil, :content => 'Chicken' )
1083
+ r.should_not match_tag( :option, :value => 'chicken', :selected => '', :content => 'Chicken' )
1084
1084
  end
1085
1085
 
1086
1086
  it "should handle arrays for selected when :multiple is true" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael D. Ivey
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-18 00:00:00 -07:00
12
+ date: 2009-03-31 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.10
23
+ version: 1.0.11
24
24
  version:
25
25
  description: Helper support for Merb
26
26
  email: ivey@gweezlebur.com