Trying to test ratyrate which shows stars and lets you change the ratings on
things. I want to assert that in one circumstance, the rating isn't changed
when it's clicked on.
Trouble is that ratyrate is optimistic: it changes the UI and then does the
request. So what I need is an assertion in Capybara that a request *doesn't*
get sent to the back end, because I can't assert anything about the UI.
I tried
expect(RateyController).not_to receive(:create)
but this fails with a message that RateyController doesn't implement create
when it clearly does. So now I'm trying to see if I can assert that the message
never gets sent out of the browser, but that doesn't want to work either.
So how can I get one of these to work?
Rails 4.2, latest versions of everything.
--
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
---
You received this message because you are subscribed to the Google Groups "SD
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.