<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - cucumber login]]></title>
		<link>http://railsforum.com/viewtopic.php?id=49011</link>
		<description><![CDATA[The most recent posts in cucumber login.]]></description>
		<lastBuildDate>Wed, 30 May 2012 18:39:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[cucumber login]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=152909#p152909</link>
			<description><![CDATA[<p>I am using cucumber for my TDD <br />and i need to make sure that someone that is log in can see some pages and i just added validation to redirect the user if they are not log in </p><p>my code looks like </p><div class="codebox"><pre><code>Then /^the user  should see &quot;(.*?)&quot;$/ do |text|
  if page.respond_to? :should
    page.should have_content(text)
  else
    assert page.has_content?(text)
  end
end

Given /^that I am a user$/ do
  pending # How do i tell cucumber to log in a user
end

Given /^I visit Profile$/ do
  visit profile_path
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (moiseszaragoza)]]></author>
			<pubDate>Wed, 30 May 2012 18:39:31 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=152909#p152909</guid>
		</item>
	</channel>
</rss>
