Translating this test using Mocha

Discussion in 'Ruby/Rails' started by clem_c_rock, Jan 15, 2008.

  1. clem_c_rock

    clem_c_rock Member

    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', assigns(:blog_url)
        assert_include '<title type="text">No blog entries</title>', @response.body
    What would be the mocha form of this?
    Last edited: Jan 15, 2008
  2. mistwang

    mistwang LiteSpeed Staff


    You are welcome to post ruby/rails programming questions here. However, unless we got a few true RoR experts hanging around here, you are more likely get your answer quicker by posting to corresponding mailing list. :)
  3. clem_c_rock

    clem_c_rock Member

    Thanks for the reply. Where would I find this corresponding mailing list?
  4. mistwang

    mistwang LiteSpeed Staff

Share This Page