lib/pah/files/spec/support/acceptance_helpers.rb in pah-0.0.12 vs lib/pah/files/spec/support/acceptance_helpers.rb in pah-0.0.13
- old
+ new
@@ -10,17 +10,17 @@
page.evaluate_script("$.cookie('confirm_message')").should == message unless message.nil?
ensure
page.evaluate_script "window.confirm = window.original_confirm_function"
end
def fill_in_autocomplete(capybara_selector, jquery_selector, value)
- fill_in capybara_selector, :with => value
+ fill_in capybara_selector, with: value
page.execute_script %Q{$('#{jquery_selector}').keydown()}
end
def choose_autocomplete(text)
find('ul.ui-autocomplete').should have_content(text)
page.execute_script("$('.ui-menu-item:contains(\"#{text}\")').find('a').trigger('mouseenter').click()")
end
end
RSpec.configure do |config|
- config.include AcceptanceHelpers, :type => :request
+ config.include AcceptanceHelpers, type: :request
end