Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Translating this test using Mocha

Status
Not open for further replies.

clemcrock

Programmer
Dec 17, 2006
63
US
Hello,
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:

Code:
  def test_get_feed_details_w_bad_url
    assert_incomplete_test
    get :feed_widget_details, :k => 'e6efb203a1cdebcf5a7406175924fe9991979f68', :id => artists(:first).id
    assert_response :success
    assert_equal WEB_SERVER + '/controller/rss/blog/artist_1', assigns(:blog_url)
    assert_include '<title type="text">No blog entries</title>', @response.body
  end
[code]

What would be the mocha form of this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top