I have the following helper, which fails when I run rake spec:
1)
'HamlHelper locale_attrs should set the right XHTML header with
default locale' FAILED
expected {:xmlns=>"http://www.w3.org/1999/xhtml",
"xml:lang"=>"en", :lang=>"en"}
got {:xmlns=>"http://www.w3.org/1999/xhtml",
"xml:lang"=>"en", :lang=>"en"}
(compared using eql?)
./spec/helpers/haml_helper_spec.rb:9:
2)
'HamlHelper locale_attrs should set the right XHML header with :es
locale' FAILED
expected {:xmlns=>"http://www.w3.org/1999/xhtml",
"xml:lang"=>"es", :lang=>"es"}
got {:xmlns=>"http://www.w3.org/1999/xhtml",
"xml:lang"=>"es", :lang=>"es"}
(compared using eql?)
describe HamlHelper do
describe "locale_attrs" do
it "should set the right XHTML header with default locale" do
attr_hash = {:lang=>"en", :xmlns=>"http://www.w3.org/1999/
xhtml", "xml:lang"=>"en"}
helper.locale_attrs.should eql(attr_hash)
end
it "should set the right XHML header with :es locale" do
attr_hash = {:lang=>"es", :xmlns=>"http://www.w3.org/1999/
xhtml", "xml:lang"=>"es"}
with_locale(:es) do
helper.locale_attrs.should eql(attr_hash)
end
end
end
Any ideas?
Thanks,
Mark
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---