That did the trick! Thanks.
On May 27, 10:33 am, Bradley Grzesiak <[email protected]> wrote:
> use this:
> x.should == y
> instead of:
> x.should eql(y)
>
> This looks like an rspec issue, not a haml one.
>
> On Wed, May 27, 2009 at 8:13 AM, Mark A. Richman
> <[email protected]>wrote:
>
>
>
>
>
> > 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
>
> --
> Bradley Grzesiak
> [email protected]http://toleoandbeyond.blogspot.com
>
> * You have received an email from my personal account. Please do not divulge
> this address to any website (eg: evite, shutterfly, etc). I have another
> address for such uses; please ask me for it.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---