<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: jQuery: Approaches to testing</title>
	<atom:link href="http://www.markhneedham.com/blog/2009/01/24/jquery-approaches-to-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2009/01/24/jquery-approaches-to-testing/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Andrew</title>
		<link>http://www.markhneedham.com/blog/2009/01/24/jquery-approaches-to-testing/comment-page-1/#comment-32491</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 25 Feb 2010 00:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=876#comment-32491</guid>
		<description>Consider using Jasmine: http://github.com/pivotal/jasmine

It&#039;s pretty much replaced screw.unit.</description>
		<content:encoded><![CDATA[<p>Consider using Jasmine: <a href="http://github.com/pivotal/jasmine" rel="nofollow">http://github.com/pivotal/jasmine</a></p>
<p>It&#8217;s pretty much replaced screw.unit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elijah Manor</title>
		<link>http://www.markhneedham.com/blog/2009/01/24/jquery-approaches-to-testing/comment-page-1/#comment-29716</link>
		<dc:creator>Elijah Manor</dc:creator>
		<pubDate>Mon, 04 Jan 2010 06:21:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=876#comment-29716</guid>
		<description>Ahh.. I modified the source code of qmock to suite my needs ;) 

Now I can do something like...

     var mock$ = new Mock();
     mock$
    	.expects(1)
        .method(&#039;ajax&#039;)
        .withArguments({
        	url: String,
            success: Function,
            dataType: &quot;jsonp&quot; 
        })
        .callFunctionWith(&#039;data response&#039;);

and then I pass mock$ into my function as a variable that acts like the jQuery object</description>
		<content:encoded><![CDATA[<p>Ahh.. I modified the source code of qmock to suite my needs <img src='http://www.markhneedham.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>Now I can do something like&#8230;</p>
<p>     var mock$ = new Mock();<br />
     mock$<br />
    	.expects(1)<br />
        .method(&#8216;ajax&#8217;)<br />
        .withArguments({<br />
        	url: String,<br />
            success: Function,<br />
            dataType: &#8220;jsonp&#8221;<br />
        })<br />
        .callFunctionWith(&#8216;data response&#8217;);</p>
<p>and then I pass mock$ into my function as a variable that acts like the jQuery object</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elijah Manor</title>
		<link>http://www.markhneedham.com/blog/2009/01/24/jquery-approaches-to-testing/comment-page-1/#comment-29711</link>
		<dc:creator>Elijah Manor</dc:creator>
		<pubDate>Mon, 04 Jan 2010 04:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=876#comment-29711</guid>
		<description>I know this is almost a year after you posted this, but I&#039;d be interested to see how you are stubbing out the AJAX request w/ jQuery. I imagine you are stubbing out the return success callback with a static value so that the actual HTTP request isn&#039;t being made, correct? Do you have a sample out there somewhere?</description>
		<content:encoded><![CDATA[<p>I know this is almost a year after you posted this, but I&#8217;d be interested to see how you are stubbing out the AJAX request w/ jQuery. I imagine you are stubbing out the return success callback with a static value so that the actual HTTP request isn&#8217;t being made, correct? Do you have a sample out there somewhere?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dew Drop - Weekend Edition - January 24-25, 2009 &#124; Alvin Ashcraft's Morning Dew</title>
		<link>http://www.markhneedham.com/blog/2009/01/24/jquery-approaches-to-testing/comment-page-1/#comment-5109</link>
		<dc:creator>Dew Drop - Weekend Edition - January 24-25, 2009 &#124; Alvin Ashcraft's Morning Dew</dc:creator>
		<pubDate>Sun, 25 Jan 2009 03:03:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=876#comment-5109</guid>
		<description>[...] jQuery: Approaches to Testing (Mark Needham) [...]</description>
		<content:encoded><![CDATA[<p>[...] jQuery: Approaches to Testing (Mark Needham) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

