mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Tidying up
This commit is contained in:
committed by
Rob Harrington
parent
bc442c7819
commit
e45d1d42b4
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user