Hi,

i've started using rspec for this project (latest versions: rspec
1.1.9 and rspec-rails 1.1.9), and i stumbled upon the following
problems:
- render_template:
response.should render_template('new')
i get the following fail
expected "new", got "/Users/elise/Rails/myapp/app/views/user/profiles/
new.html.erb"
So it expects the full path. That can't be right ?

- should be: doesn't give me the result i expect for two strings that
are equal.
assigns['page'].menu.should be("home alone")
gives me
expected "home alone", got "home alone"

- mocking (ok, i'm using mocha, so maybe it isn't rspec):  i make a
mailer raise an error like this:
DummyMailer.stubs(:deliver_invitation).raises(Exception)
and in my code, surround this with begin ... rescue, the exception is
not caught !

Any tips ?

Thanks !

Elise
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to