<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - somethng wrong with test cucumber [solved]]]></title>
		<link>http://railsforum.com/viewtopic.php?id=49002</link>
		<description><![CDATA[The most recent posts in somethng wrong with test cucumber [solved].]]></description>
		<lastBuildDate>Wed, 13 Jun 2012 20:59:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: somethng wrong with test cucumber [solved]]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=153287#p153287</link>
			<description><![CDATA[<p>i changed my test to to be like </p><p><strong>features/visitor_views_site_features.feature</strong><br /></p><div class="codebox"><pre><code>Scenario Outline: Visit private pages and i am not registered to the site-
    When I go to a private page &lt;Page&gt;
    Then I should see &quot;Sign in&quot;
    Examples: List of private pages
      | Page      |
      | Page1    |
      | Page2    |
      | Page3    |</code></pre></div><p><strong> features/step_definitions/visitor_views_site_features.rb</strong><br /></p><div class="codebox"><pre><code>When /^I go to a private page Page$/ do
#  visit page_path
end 

Then /^I should see &quot;(.*?)&quot;$/ do |text|
  if page.respond_to? :should
    page.should have_content(text)
  else
    assert page.has_content?(text)
  end
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (moiseszaragoza)]]></author>
			<pubDate>Wed, 13 Jun 2012 20:59:47 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=153287#p153287</guid>
		</item>
		<item>
			<title><![CDATA[Re: somethng wrong with test cucumber [solved]]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=152888#p152888</link>
			<description><![CDATA[<p>i think this is what i whant to do <br /></p><div class="codebox"><pre><code>Then /^I should see be sent back to the home page$/ do
  @mypage = request.request_uri
  if (@mypage == root_path)
    pass
  end
end</code></pre></div><p>but i dont think this is legal code</p>]]></description>
			<author><![CDATA[dummy@example.com (moiseszaragoza)]]></author>
			<pubDate>Tue, 29 May 2012 21:42:15 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=152888#p152888</guid>
		</item>
		<item>
			<title><![CDATA[Re: somethng wrong with test cucumber [solved]]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=152886#p152886</link>
			<description><![CDATA[<p>1. Remove your step_definiton until step 3.<br />2. Run</p>]]></description>
			<author><![CDATA[dummy@example.com (jasnow)]]></author>
			<pubDate>Tue, 29 May 2012 20:15:53 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=152886#p152886</guid>
		</item>
		<item>
			<title><![CDATA[somethng wrong with test cucumber [solved]]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=152885#p152885</link>
			<description><![CDATA[<p>for some reason my test are passing when i dont want them to. </p><p>example of a test <br /><strong>Feature</strong><br /></p><div class="codebox"><pre><code>Feature: Visitor Page With a list of sites features
  In order to learn more about On-Call Architect
  As a perspective customer
  I want to view company information-

  Scenario Outline: Visit private  pages
    When I go to a private page  &lt;Page&gt;-
    Then I should see be sent back to the home page
    Examples: List of private pages
      | Page        |
      | Location    |
      | Services    |
      | Messages    |
      | Profile     |
                          </code></pre></div><p><strong>step_definitions</strong><br /></p><div class="codebox"><pre><code>When /^I go to a private page  Location$/ do
  visit location_path
end
When /^I go to Home Page$/ do
  visit root_path
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (moiseszaragoza)]]></author>
			<pubDate>Tue, 29 May 2012 19:21:34 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=152885#p152885</guid>
		</item>
	</channel>
</rss>
