Translating this test using Mocha

I’m trying to learn Mocha and having a bit of problems how to
translate some of my tests to the mocha world.

For example - I’m trying to convert this simple test:

def test_get_feed_details_w_bad_url
get :feed_widget_details, :k =>
‘e6efb203a1cdebcf5a7406175924fe9991979f68’, :id => artists(:first).id
assert_response :success
assert_equal WEB_SERVER + ‘/controller/rss/blog/artist_1’,
assert_include ‘No blog entries’,


What would be the mocha form of this?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs