Running pickle

3 views
Skip to first unread message

danigb

unread,
Nov 9, 2009, 5:26:39 AM11/9/09
to pickle
I'm a little bit desperate: i've trying to run pickle in my computer
(i've tryied both ubuntu and macosx) without success. Even i
downloaded the source code of the railscast episode #186 but i gives
me the "undefined step" error when i do "cucumber fectures".

In my current project, this is the feature:

Feature: Display Contents
In order to see the contents
As a user
I want to see and filter the contents of the web

Scenario: Show content
Given a user exists
When I go to the show page of that content

And this is the output:

Scenario: Show content # features/
display_contents.feature:6
Given a user exists # features/
display_contents.feature:7
When I go to the show page of that content # features/
step_definitions/webrat_steps.rb:15

1 scenario (1 undefined)
2 steps (1 skipped, 1 undefined)
0m0.003s

You can implement step definitions for undefined steps with these
snippets:

Given /^a user exists$/ do
pending
end


Obviosly, i have defined (and working) a content model and
contents_controller classes

there's something wrong, but i can't find what
any help would be nice
thanks
dani


Ian White

unread,
Nov 9, 2009, 8:28:31 AM11/9/09
to pickle-...@googlegroups.com
It looks like pickle isn't being loaded.

I assume you've run scrip/generate pickle.

* Does your step_definitions/ folder contsain pickle_steps.rb?
* Does your support/env.rb require 'pickle/world'?

Cheers,
Ian

danigb

unread,
Nov 9, 2009, 3:50:47 PM11/9/09
to pickle

Yes i did everything. In fact i clone the repo of the picke railscast
and it doesnt work at my (both!!) machines.
Even more, if i add the "Given(/a user exists/) do..." definition
nside the pickle_steps file, it works!!
weird!

thanks for answer
cheers
dani

Ian White

unread,
Nov 9, 2009, 3:58:42 PM11/9/09
to pickle-...@googlegroups.com
Very strange. Would like to get to the bottom of it. What versions of
ruby/relevant gems are you using on the os x box?

Cheers,
Ian

Sent from my iPhone

danigb

unread,
Nov 10, 2009, 4:21:00 AM11/10/09
to pickle

Yes, strange...

here it is:
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]

*** LOCAL GEMS ***

actionmailer (2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.0, 2.0.2,
1.3.6, 1.3.3, 1.3.2)
actionpack (2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.0, 2.0.2,
1.13.6, 1.13.3, 1.13.2)
actionwebservice (1.2.6, 1.2.3, 1.2.2)
activerecord (2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.0, 2.0.2,
1.15.6, 1.15.3, 1.15.2)
activeresource (2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.0,
2.0.2)
activesupport (2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.0, 2.0.2,
1.4.4, 1.4.2, 1.4.1)
acts_as_ferret (0.4.4, 0.4.1)
arrayfields (4.7.2)
authlogic (2.1.2, 1.4.3)
braid (0.5)
builder (2.1.2)
capistrano (2.5.5, 2.0.0)
cgi_multipart_eof_fix (2.5.0, 2.2)
chronic (0.2.3)
cmdparse (2.0.2)
configuration (0.0.5)
cucumber (0.4.3, 0.3.104, 0.3.100, 0.3.3, 0.2.3, 0.1.16)
daemons (1.0.10, 1.0.9, 1.0.7)
dependencies (0.0.7)
diff-lcs (1.1.2)
dnssd (0.6.0)
echoe (3.1.1)
facets (2.5.2)
fastthread (1.0.1, 1.0)
fattr (1.0.3)
fcgi (0.8.7)
ferret (0.11.6, 0.11.4)
fiveruns_tuneup (0.8.20)
flay (1.2.1)
flog (2.1.0)
flyerhzm-bullet (1.5.4)
formtastic (0.9.1)
gdata (1.1.0)
gem_plugin (0.2.3, 0.2.2)
gembox (0.1.5)
gemcutter (0.1.4)
graysky-translator (1.0.0)
grit (1.1.1)
haml (2.0.9)
heroku (0.5.6, 0.4.1)
highline (1.2.9)
hoe (1.8.2)
hpricot (0.8.1, 0.6)
inherited_resources (0.9.2)
josevalim-inherited_resources (0.9.1)
jscruggs-metric_fu (1.0.2)
json (1.1.9)
juicer (0.2.6)
launchy (0.3.3)
less (1.2.11, 1.1.13, 1.1.5)
libxml-ruby (0.9.5, 0.3.8.4)
locale (2.0.4)
main (2.8.3)
mime-types (1.16)
mislav-will_paginate (2.3.10, 2.2.3)
mongrel (1.1.4, 1.0.1)
monk (0.0.7)
mustache (0.1.1)
mutter (0.4.0)
mysql (2.7)
needle (1.3.0)
net-scp (1.0.2)
net-sftp (2.0.2, 1.1.0)
net-ssh (2.0.11, 1.1.2)
net-ssh-gateway (1.0.1)
newrelic_rpm (2.9.4)
nokogiri (1.3.3, 1.2.0)
oauth (0.3.6)
oauth-plugin (0.3.14)
open4 (0.9.6)
paperclip (2.3.1.1)
ParseTree (3.0.3)
pickle (0.1.21)
polyglot (0.2.9, 0.2.8, 0.2.5, 0.2.4)
portablecontacts (0.1.0)
rack (1.0.0, 0.9.1)
rack-test (0.5.0)
rails (2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.0, 2.0.2, 1.2.6,
1.2.3, 1.2.2)
rake (0.8.7, 0.8.3, 0.8.1, 0.7.3)
rcov (0.8.1.2.0)
rdiscount (1.3.5)
RedCloth (4.1.9, 3.0.4, 3.0.3)
reek (1.0.0)
rest-client (1.0.3, 0.8.2)
roodi (1.4.0)
rspec (1.2.9, 1.2.8, 1.2.6, 1.2.2, 1.1.12)
rspec-rails (1.2.9, 1.2.7.1, 1.2.6, 1.2.2, 1.1.12)
ruby-hmac (0.3.2)
ruby-openid (2.1.7, 1.1.4)
ruby-yadis (0.3.4)
ruby_parser (2.0.2)
rubyforge (1.0.3, 1.0.2)
rubygems-update (1.3.5, 1.3.1, 1.2.0)
RubyInline (3.8.1)
rubynode (0.1.3)
rubyzip (0.9.1)
searchlogic (2.3.5)
sequel (3.0.0)
sexp_processor (3.0.1)
shotgun (0.4)
shoulda (2.10.2)
sinatra (0.9.2)
sources (0.0.1)
sqlite3-ruby (1.2.1)
syntax (1.0.0)
taps (0.2.19)
term-ansicolor (1.0.4, 1.0.3)
termios (0.9.4)
thor (0.11.7, 0.9.9)
thoughtbot-factory_girl (1.2.1)
thoughtbot-shoulda (2.10.1)
translator (1.0.0)
treetop (1.4.2, 1.4.1, 1.2.5, 1.2.4)
vegas (0.0.1)
webrat (0.5.3, 0.4.4, 0.4.1)
will_paginate (2.3.11)
wirble (0.1.3)
ZenTest (4.0.0)

maybe i should upgrade the ruby i use...

Ian White

unread,
Nov 10, 2009, 4:23:55 AM11/10/09
to pickle-...@googlegroups.com
Before upgrading ruby (1.8.6 should be fine) could you try making the
test app as I described. That way we'll know if it's peculiar to your
system, or your app setup.

Cheers,
Ian

danigb

unread,
Nov 10, 2009, 6:53:00 AM11/10/09
to pickle

Test app you described? I dont know what you mean...

Ian White

unread,
Nov 10, 2009, 6:56:30 AM11/10/09
to pickle-...@googlegroups.com
Oops, sorry, wrong thread!

http://groups.google.com/group/pickle-cucumber/browse_thread/thread/75ef677c5c94fee1

contains a description of how to get a test app going with pickle and
factory_girl. I did this primarily to assure myself that pickle was
factory_girl friendly. If you could look at that with a view to the
differences b/n your app and it, I'll be able to track the problem
down quicker.

Cheers,
Ian

danigb

unread,
Nov 10, 2009, 7:29:27 AM11/10/09
to pickle

Great! Thanks for the link.

And after some more experimentation with your link and some other
sutff:
1) the reference app works perfectly!! great!!
2) i made a mistake in the episode-168 clone because i didnt setup the
test database!!!!!! arrgggg!!! now, with rake db:test:prepare
everything in the episode clone works!
3) my application feature continue refuse to working...

i'm doing more test and i will keep you informed
thanks for the support!!!

cheers
dani


On Nov 10, 12:56 pm, Ian White <ian.w.wh...@gmail.com> wrote:
> Oops, sorry, wrong thread!
>
> http://groups.google.com/group/pickle-cucumber/browse_thread/thread/7...

danigb

unread,
Nov 10, 2009, 7:44:38 AM11/10/09
to pickle

Ok, i think its "solved". In fact, i don't know exactly what was going
on...
I've destroyed and reinstalled cucumber in my own project, setup again
the test database... and it worked
so, thanks a LOT for listen to me!!

cheers
dani

Ian White

unread,
Nov 10, 2009, 8:41:30 AM11/10/09
to pickle
No probs.

Cheers,
Ian
Reply all
Reply to author
Forward
0 new messages