No response yet. Request a page first. (Rack::Test::Error) with Rails 2.3.8, Ruby 1.8.7, Gem 1.3.7

780 views
Skip to first unread message

RoRroland

unread,
Nov 24, 2011, 12:10:13 AM11/24/11
to Cukes
Hi Guys,

I just started testing out Cucumber and RsPec. I have the same issue.
Can you please help me point out what's missing in my script. Anyway
here's the error I have encountered.

(::) failed steps (::)

No response yet. Request a page first. (Rack::Test::Error)
./features/step_definitions/web_steps.rb:110
./features/step_definitions/web_steps.rb:14:in with_scope'
./features/step_definitions/web_steps.rb:108:in/^(?:|I )should see
"([^"])"(?: within "([^"])")?$/'
features/manage_pages.feature:10:in `And I should see "Contact"'

Failing Scenarios:
cucumber features/manage_pages.feature:6 # Scenario: Pages List
Given I have pages titled Portfolio, Contact
When I go to list of pagess
Then I should see "Portfolio"

2 scenarios (1 failed, 1 passed)
11 steps (1 failed, 10 passed)
0m1.289s

Aslak Hellesøy

unread,
Nov 24, 2011, 2:59:08 AM11/24/11
to cu...@googlegroups.com
On Nov 24, 2011, at 7:31, RoRroland <rorr...@gmail.com> wrote:

> Hi Guys,
>
> I just started testing out Cucumber and RsPec. I have the same issue.
> Can you please help me point out what's missing in my script. Anyway
> here's the error I have encountered.
>

Can you list your gem versions please?

Aslak

> (::) failed steps (::)
>
> No response yet. Request a page first. (Rack::Test::Error)
> ./features/step_definitions/web_steps.rb:110
> ./features/step_definitions/web_steps.rb:14:in with_scope'
> ./features/step_definitions/web_steps.rb:108:in/^(?:|I )should see
> "([^"])"(?: within "([^"])")?$/'
> features/manage_pages.feature:10:in `And I should see "Contact"'
>
> Failing Scenarios:
> cucumber features/manage_pages.feature:6 # Scenario: Pages List
> Given I have pages titled Portfolio, Contact
> When I go to list of pagess
> Then I should see "Portfolio"
>
> 2 scenarios (1 failed, 1 passed)
> 11 steps (1 failed, 10 passed)
> 0m1.289s
>

> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>

RoRroland

unread,
Nov 24, 2011, 3:15:00 AM11/24/11
to Cukes
Here's what I used:

Ruby -v1.8.7
Rails -v2.3.8
Gem -v1.3.7

*** LOCAL GEMS ***

actionmailer (2.3.12, 2.3.8)
actionpack (3.1.3, 3.1.2, 2.3.12, 2.3.8)
activemodel (3.1.3, 3.1.2)
activerecord (2.3.12, 2.3.8)
activeresource (2.3.12, 2.3.8)
activesupport (3.1.3, 3.1.2, 2.3.12, 2.3.8)
addressable (2.2.6)
builder (3.0.0, 2.1.2)
bundle (0.0.1)
bundler (1.0.21)
capybara (0.4.0)
celerity (0.9.1)
childprocess (0.2.2)
cucumber (0.8.5)
cucumber-rails (0.3.2)
culerity (0.2.15)
database_cleaner (0.6.0)
diff-lcs (1.1.3)
erubis (2.7.0)
ffi (1.0.11)
gherkin (2.6.7, 2.2.9, 2.1.5)
heroku (2.14.0)
hike (1.2.1)
i18n (0.6.0)
json (1.6.1, 1.4.6)
json_pure (1.6.1, 1.4.6)
launchy (2.0.5)
mime-types (1.17.2)
multi_json (1.0.3)
mysql (2.8.1)
nokogiri (1.5.0)
rack (1.3.5, 1.1.2)
rack-cache (1.1)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.1)
radiant (0.9.1)
rails (2.3.8)
railties (3.1.2)
rake (0.9.2)
rdoc (3.11)
RedCloth (4.2.8)
rest-client (1.6.7)
rspec (1.3.0)
rspec-core (2.7.1)
rspec-expectations (2.7.0)
rspec-mocks (2.7.0)
rspec-rails (1.3.2)
rubygems-update (1.8.11, 1.8.6, 1.8.5, 1.3.7)
rubyzip (0.9.4)
selenium-webdriver (2.12.2)
sprockets (2.1.0, 2.0.3)
term-ansicolor (1.0.7)
thor (0.14.6)
tilt (1.3.3)
trollop (1.16.2)
webrat (0.7.3)
will_paginate (2.3.16)
xpath (0.1.4)

On Nov 24, 3:59 pm, Aslak Hellesøy <aslak.helle...@gmail.com> wrote:

aslak hellesoy

unread,
Nov 24, 2011, 3:24:04 AM11/24/11
to cu...@googlegroups.com

What happens in the step definition for "When I go to list of pagess"?
Pasting some code on gist.github.com or similar would help.

Aslak

RoRroland

unread,
Nov 24, 2011, 4:30:15 AM11/24/11
to Cukes
Hi Thanks for the reply aslak.

Here's my script.

When /^I go to list of Pages$/ do
Page.all
end

I'm sorry I'm just new to cucumber.

Thanks again.

Roland

On Nov 24, 4:24 pm, aslak hellesoy <aslak.helle...@gmail.com> wrote:

aslak hellesoy

unread,
Nov 24, 2011, 4:44:57 AM11/24/11
to cu...@googlegroups.com
On Thu, Nov 24, 2011 at 9:30 AM, RoRroland <rorr...@gmail.com> wrote:
> Hi Thanks for the reply aslak.
>
> Here's my script.
>
> When /^I go to list of Pages$/ do
>  Page.all

What did you expect Page.all to do?

RoRroland

unread,
Nov 24, 2011, 7:15:41 PM11/24/11
to Cukes
Display all pages name and probably author in a page.

On Nov 24, 5:44 pm, aslak hellesoy <aslak.helle...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages