Tidying up

This commit is contained in:
Matt-Yorkley
2016-12-02 21:50:22 +00:00
committed by Rob Harrington
parent bc442c7819
commit e45d1d42b4
2 changed files with 0 additions and 11 deletions

View File

@@ -8,7 +8,6 @@ module Spree
def edit
super
@preferences_general << :bugherd_api_key
@preferences_terms_of_service = [:enterprises_require_tos]
end
end
GeneralSettingsController.send(:prepend, GeneralSettingsEditPreferences)

View File

@@ -12,8 +12,6 @@ feature "Registration", js: true do
visit registration_path
expect(Spree::Config.enterprises_require_tos).to eq false
Spree::Config[:enterprises_require_tos].should be false
expect(URI.parse(current_url).path).to eq registration_auth_path
page.has_selector? "dd", text: "Login"
@@ -159,14 +157,6 @@ feature "Registration", js: true do
expect(page).to have_content content
end
def wait_for(element)
using_wait_time 0.5 do
10.times do
break if page.has_selector? element
end
end
end
def click_and_ensure(type, text, check)
# Buttons appear to be unresponsive for a while, so keep clicking them until content appears
using_wait_time 0.5 do