Hello,

 

Here's a test I wrote for cookies:

 

it "should change language when params[:id] is present" do

  cookies[:thothle_language] = 'e'

  get 'index', :id => 'f'

  response.cookies["thothle_language"].should equal('f')

end

 

The error I get is the following:

 

...expected "f", got ["f"] (using .equal?)

 

Any help would be appreciated.

 

Thank you

 

Olivier Dupuis

 

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to