seancribbs/ripple — Issue #221: Test generator
Author: JGailor
Created: 2011-10-11 23:28:38+00:00
State: open

In the following code in the test generator it seems like there is an assumption that the ripple.rb file exists within the cucumber support directory:

def create_cucumber_file
if File.directory?(Rails.root + "features/support")
insert_into_file 'features/support/ripple.rb', "\n\nAfter do\n Ripple::TestServer.clear\nend", :after => "Ripple::TestServer.setup"
end
end

I use this as a replacement but it results in the error below. Suggestions?:

require 'ripple/test_server'

Ripple::TestServer.setup

After do
Ripple::TestServer.clear
end

Riak::Node configuration must include :source and :root keys. (ArgumentError)
/Users/jgailor/.rvm/gems/ruby-1.9.2-p180@dashboard/bundler/gems/ripple-92ab7d442ddf/riak-client/lib/riak/node/configuration.rb:135:in `configure'
/Users/jgailor/.rvm/gems/ruby-1.9.2-p180@dashboard/bundler/gems/ripple-92ab7d442ddf/riak-client/lib/riak/node.rb:28:in `initialize'
/Users/jgailor/.rvm/gems/ruby-1.9.2-p180@dashboard/bundler/gems/ripple-92ab7d442ddf/riak-client/lib/riak/test_server.rb:23:in `initialize'
/Users/jgailor/.rvm/gems/ruby-1.9.2-p180@dashboard/bundler/gems/ripple-92ab7d442ddf/ripple/lib/ripple/test_server.rb:33:in `initialize'
/Users/jgailor/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/singleton.rb:109:in `new'
/Users/jgailor/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/singleton.rb:109:in `block in instance'
:10:in `synchronize'
/Users/jgailor/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/singleton.rb:107:in `instance'
/Users/jgailor/.rvm/gems/ruby-1.9.2-p180@dashboard/bundler/gems/ripple-92ab7d442ddf/ripple/lib/ripple/test_server.rb:13:in `setup'
/Users/jgailor/projects/dashboard/features/support/ripple.rb:3:in `'