(in /Users/karl/NetBeansProjects/pickle)
/Users/karl/NetBeansProjects/pickle/spec/spec_helper.rb:4:in
`require': no such file to load -- /Users/config/environment (LoadError)
from /Users/karl/NetBeansProjects/pickle/spec/spec_helper.rb:4
from ./spec/lib/pickle_adapter_spec.rb:1:in `require'
from ./spec/lib/pickle_adapter_spec.rb:1
from /usr/local/rvm/gems/ruby-1.8.6-p287/gems/rspec-1.2.9/lib/spec/
runner/example_group_runner.rb:15:in `load'
from /usr/local/rvm/gems/ruby-1.8.6-p287/gems/rspec-1.2.9/lib/spec/
runner/example_group_runner.rb:15:in `load_files'
from /usr/local/rvm/gems/ruby-1.8.6-p287/gems/rspec-1.2.9/lib/spec/
runner/example_group_runner.rb:14:in `each'
from /usr/local/rvm/gems/ruby-1.8.6-p287/gems/rspec-1.2.9/lib/spec/
runner/example_group_runner.rb:14:in `load_files'
from /usr/local/rvm/gems/ruby-1.8.6-p287/gems/rspec-1.2.9/lib/spec/
runner/options.rb:132:in `run_examples'
from /usr/local/rvm/gems/ruby-1.8.6-p287/gems/rspec-1.2.9/lib/spec/
runner/command_line.rb:9:in `run'
from /usr/local/rvm/gems/ruby-1.8.6-p287/gems/rspec-1.2.9/bin/spec:5
rake aborted!
Command /usr/local/rvm/ruby-1.8.6-p287/bin/ruby -I"lib" "/usr/local/
rvm/gems/ruby-1.8.6-p287/gems/rspec-1.2.9/bin/spec" "spec/lib/
pickle_adapter_spec.rb" "spec/lib/pickle_config_spec.rb" "spec/lib/
pickle_email_parser_spec.rb" "spec/lib/pickle_email_spec.rb" "spec/lib/
pickle_parser_matchers_spec.rb" "spec/lib/pickle_parser_spec.rb" "spec/
lib/pickle_path_spec.rb" "spec/lib/pickle_session_spec.rb" "spec/lib/
pickle_spec.rb" --colour failed
(See full trace by running task with --trace)
Looksl like pickle is missing the environment file referenced from
spec_helper? Probably something silly I am doing.
thx
-karl
I can confirm your problem. If I have pickle just sitting somewhere in
the path, I have it too. Here is how to fix it:
Create an empty Rails project and clone the pickle repository into
vendor/plugins. This way pickle can find the environment it is looking
for. After installing some gems, which were additionally required,
this worked for me.
So, I guess, it's not you doing something silly, but rather
pickle... ;)
Stephan
> --
> You received this message because you are subscribed to the Google
> Groups "pickle" group.
> To post to this group, send email to pickle-...@googlegroups.com.
> To unsubscribe from this group, send email to pickle-cucumb...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/pickle-cucumber?hl=en
> .
>
It's a fair cop. I use garlic to run the pickle specs and features
across different versions of rails, but that's no excuse for 'rake
spec' not working in pickle root.
Expect this to change soon.In the meantime ive added some instructions
(thanks nruth) http://github.com/ianwhite/pickle/commit/3dbc458203158b61509186a5d7655578617e2e1e
Cheers,
Ian
Following the new steps in a freshly rvm'ed ruby 1.8.7, I can not get
the specs to run. I can't figure out, what I am missing. My current
gems are:
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
builder (2.1.3)
capybara (0.3.5)
cucumber (0.6.2)
cucumber-rails (0.3.0)
culerity (0.2.9)
diff-lcs (1.1.2)
ffi (0.6.2)
json_pure (1.2.2)
mime-types (1.16)
nokogiri (1.4.1)
polyglot (0.3.0)
rack (1.0.1)
rack-test (0.5.3)
rails (2.3.5)
rake (0.8.7)
rcov (0.9.8)
rcov_rails (0.1.6)
rspec (0.5.15)
rspec_generator (0.5.15)
selenium-webdriver (0.0.17)
term-ansicolor (1.0.4)
treetop (1.4.4)
I get
(in /Users/stephan.hagemann/Documents/pickle_test_project/vendor/
plugins/pickle)
rake aborted!
no such file to load -- spec/rake/verify_rcov
/Users/stephan.hagemann/Documents/pickle_test_project/vendor/plugins/
pickle/Rakefile:6
(See full trace by running task with --trace)
Stephan
On Feb 10, 9:55 pm, Ian White <ian.w.wh...@gmail.com> wrote:
> > So, I guess, it's not you doing something silly, but rather
> > pickle... ;)
>
> It's a fair cop. I use garlic to run the pickle specs and features
> across different versions of rails, but that's no excuse for 'rake
> spec' not working in pickle root.
>
> Expect this to change soon.In the meantime ive added some instructions
> (thanks nruth)http://github.com/ianwhite/pickle/commit/3dbc458203158b61509186a5d765...
Sent from my iPhone
On 2 Mar 2010, at 10:58, Stephan <stephan....@googlemail.com>
wrote:
(in /Users/stephan.hagemann/Documents/pickle_test_project/vendor/
plugins/pickle)
rake aborted!
no such file to load -- spec/rake/verify_rcov
/Users/stephan.hagemann/Documents/pickle_test_project/vendor/plugins/
pickle/Rakefile:6
(See full trace by running task with --trace)
is the one I get when I run "rake spec"...
On Mar 2, 2:19 pm, Ian White <ian.w.wh...@gmail.com> wrote:
> Rcov is the missing peice. Do the specs run when you do 'rake spec'?
>
> Sent from my iPhone
>
> On 2 Mar 2010, at 10:58, Stephan <stephan.hagem...@googlemail.com>
I think that it's your version of rspec which looks quite old (0.5).
the current version is 1.3.
Could you try upgrading and seeing how that works.
If you don;t want to upgrade your system gems, you can install rspec
and rspec-rails as plugins in the test app, and the Rakefile should
pick them up (you need to run the rspec and cucumber generator files
if you do this)
Cheers,
Ian
your answer finally set me on the right track. I was not only running
an old version of rspec, but was also missing several other gems... I
was able to run (and get to pass) the tests with the following gems
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
builder (2.1.3)
capybara (0.3.5)
cucumber (0.6.2)
cucumber-rails (0.3.0)
culerity (0.2.9)
database_cleaner (0.5.0)
diff-lcs (1.1.2)
factory_girl (1.2.3)
ffi (0.6.2)
gemcutter (0.4.1)
git (1.2.5)
jeweler (1.4.0)
json_pure (1.2.2)
machinist (1.0.6)
mime-types (1.16)
nokogiri (1.4.1)
polyglot (0.3.0)
rack (1.0.1)
rack-test (0.5.3)
rails (2.3.5)
rake (0.8.7)
rcov (0.9.8)
rcov_rails (0.1.6)
rspec (1.3.0)
rspec-rails (1.3.2)
rubyforge (2.0.4)
selenium-webdriver (0.0.17)
sqlite3-ruby (1.2.5)
term-ansicolor (1.0.4)
treetop (1.4.4)
webrat (0.7.0)
Cheers
Stephan