<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pivotal Labs &#187; omniauth</title>
	<atom:link href="http://pivotallabs.com/tag/omniauth/feed/" rel="self" type="application/rss+xml" />
	<link>http://pivotallabs.com</link>
	<description>Agility Developed</description>
	<lastBuildDate>Sun, 26 May 2013 03:43:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Testing OmniAuth based login via Cucumber</title>
		<link>http://pivotallabs.com/testing-omniauth-based-login-via-cucumber/</link>
		<comments>http://pivotallabs.com/testing-omniauth-based-login-via-cucumber/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 18:44:00 +0000</pubDate>
		<dc:creator>Mike Gehard</dc:creator>
				<category><![CDATA[Labs]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[omniauth]]></category>
		<category><![CDATA[rails3]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/testing-omniauth-based-login-via-cucumber/</guid>
		<description><![CDATA[<p><p>If you haven't looked at <a href="https://github.com/intridea/omniauth">OmniAuth</a> for authentication with sites like Google, Github and Facebook, then you should take a look.  It is pretty killer.</p>

<p>This morning we needed to write a <a href="https://github.com/aslakhellesoy/cucumber">Cucumber</a> scenario to test that a user could log into the system using Google Apps.</p>

<p>We did a quick spike on getting OminAuth integrated, which was a super simple process, and poked around in the browser to make sure it was working OK.</p>

<p>Thanks to <a href="https://github.com/josevalim">Jose Valim</a> for providing some guidance, via the Devise test suite, on how to get this all up and running.</p>

<p>The basics can be found in this Gist:
<script src="http://gist.github.com/853253.js"> </script></p>

<p>I put that code in /features/support/omniauth.rb and then all I need to do is label any scenarios that need to deal with login with an @omniauth_test tag and we are all set.</p>

<p>As our features count grows, I could see us doing this before/after all Cucumber scenarios.</p>

<p>Note: You need to be using 0.2.0.beta5 of OmniAuth to get this to work.  Earlier versions don't have the testing functionality built in.  </p>

<p>Also Note: This same functionality can be used in good, old RSpec integration tests or <a href="https://github.com/cavalle/steak">Steak</a> tests as well.</p> <a href="http://pivotallabs.com/testing-omniauth-based-login-via-cucumber/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/testing-omniauth-based-login-via-cucumber/">Testing OmniAuth based login via Cucumber</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>If you haven&#8217;t looked at <a href="https://github.com/intridea/omniauth">OmniAuth</a> for authentication with sites like Google, Github and Facebook, then you should take a look.  It is pretty killer.</p>
<p>This morning we needed to write a <a href="https://github.com/aslakhellesoy/cucumber">Cucumber</a> scenario to test that a user could log into the system using Google Apps.</p>
<p>We did a quick spike on getting OminAuth integrated, which was a super simple process, and poked around in the browser to make sure it was working OK.</p>
<p>Thanks to <a href="https://github.com/josevalim">Jose Valim</a> for providing some guidance, via the Devise test suite, on how to get this all up and running.</p>
<p>The basics can be found in this Gist:<br />
<script src="http://gist.github.com/853253.js"> </script></p>
<p>I put that code in /features/support/omniauth.rb and then all I need to do is label any scenarios that need to deal with login with an @omniauth_test tag and we are all set.</p>
<p>As our features count grows, I could see us doing this before/after all Cucumber scenarios.</p>
<p>Note: You need to be using 0.2.0.beta5 of OmniAuth to get this to work.  Earlier versions don&#8217;t have the testing functionality built in.  </p>
<p>Also Note: This same functionality can be used in good, old RSpec integration tests or <a href="https://github.com/cavalle/steak">Steak</a> tests as well.</p>
<p>The post <a href="http://pivotallabs.com/testing-omniauth-based-login-via-cucumber/">Testing OmniAuth based login via Cucumber</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/testing-omniauth-based-login-via-cucumber/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using apc
Database Caching 1/12 queries in 0.024 seconds using apc
Object Caching 402/421 objects using apc

 Served from: pivotallabs.com @ 2013-05-26 00:12:23 by W3 Total Cache -->