# Translating this test using Mocha

**URL:** <https://www.ruby-forum.com/t/translating-this-test-using-mocha/126162>\
**Category:** Deployment\
**Created:** [January 15, 2008, 10:40pm UTC](https://www.ruby-forum.com/t/translating-this-test-using-mocha/126162 "2008-01-15T22:40:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clemrock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c57346/32.png) [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Post date:** [January 15, 2008, 10:40pm UTC](https://www.ruby-forum.com/t/translating-this-test-using-mocha/126162/1 "2008-01-15T22:40:01Z")

</div>

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 ‘No blog entries’,  
@response.body  
end

[code]

What would be the mocha form of this?
