page.execute_script %Q{ $('"#{location}"').val('"#{text}"').keydown(); }
sleep(3)
page.execute_script %Q{ $('.ui-menu-item a:contains("#{target}")').trigger('mouseenter').click(); }
page.should have_field(localtion, :with => completed_text)
RSpec.configure do |config|
config.use_transactional_fixtures = false
config.before(:suite) do
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with(:truncation)
end
config.before(:each) do
DatabaseCleaner.start
end
config.after(:each) do
DatabaseCleaner.clean
end
end
Machinist.configure do |config|
config.cache_objects = false
end
Apply this patch to Spork and this fix problem with child processes
Add to Gemfile
"gem ‘gherkin’, :platform => :jruby" (with out quotes) just before cucumber gem
Add to Gemfile
"gem 'therubyrhino', :platform => :jruby" (without quotes)