riak-ripple / ripple

A rich Ruby modeling layer for Riak, Basho's distributed database
Other
619 stars 152 forks source link

fix cucumber test generator - will now generate support file #260

Closed reset closed 12 years ago

reset commented 12 years ago

this error would be thrown if a features/support/ripple.rb file was not found in the project

  insert  features/support/ripple.rb

/Users/reset/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/inject_into_file.rb:99:in binread': No such file or directory - /Users/reset/code/try-hard/features/support/ripple.rb (Errno::ENOENT) from /Users/reset/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/inject_into_file.rb:99:inreplace!' from /Users/reset/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/inject_into_file.rb:60:in invoke!' from /Users/reset/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions.rb:95:inaction'

the ripple.rb support file needed to be created before it could be appended to. Upon further inspection the code actually was expecting something to exist requiring in ripple/test_server and setting it up. I couldn't find a reference to this anywhere else in the code base so I believe the correct thing to do is in this pull request.

Simply generate a proper support file for cucumber.

seancribbs commented 12 years ago

I already have a local branch that has the fix for this, but it needs tests. Sorry for the delay.

seancribbs commented 12 years ago

This is fixed in pull-request #263.