Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxa committed Jan 23, 2012
1 parent 7caf8cf commit 039b0c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile.rails-3.2
@@ -1,5 +1,5 @@
source :rubygems
gemspec
gem "rails", "3.2.0.rc2"
gem "rails", "3.2.0"
gem "mida", git: 'git://github.com/Paxa/mida.git', ref: '7db7149a2cf'
gem 'chronic_duration', git: 'git://github.com/Paxa/chronic_duration.git', ref: '8c0d0e101b'
12 changes: 7 additions & 5 deletions spec/action_view_spec.rb
Expand Up @@ -12,12 +12,14 @@
str.should =~ %r{link.+href="/stylesheets/application.css.*"}
end

it "should work with data- attributes and nested hashes" do
str = render_haml('= link_to "An", ?#, data: data_hash', data_hash: {a: 1, b: '2', c: 0.111}).gsub(?', ?")
if Rails.version =~ /^3\.[12].*/
it "should work with data- attributes and nested hashes" do
str = render_haml('= link_to "An", ?#, data: data_hash', data_hash: {a: 1, b: '2', c: 0.111}).gsub(?', ?")

str.should =~ /data\-a="1"/
str.should =~ /data\-b="2"/
str.should =~ /data\-c="0.111"/
str.should =~ /data\-a="1"/
str.should =~ /data\-b="2"/
str.should =~ /data\-c="0.111"/
end
end

it "should make itemscope as boolean attribute" do
Expand Down

0 comments on commit 039b0c4

Please sign in to comment.