Skip to content

Commit

Permalink
[Cleanup] Removes unnecessary code from spec helper (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustinoaq authored Jun 21, 2018
1 parent 0daa112 commit 6cec286
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 134 deletions.
27 changes: 0 additions & 27 deletions basic/crecto/app/spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,3 @@ Micrate::DB.connection_url = Amber.settings.database_url

# Automatically run migrations on the test database
Micrate::Cli.run_up

module Spec
DRIVER = :chrome
PATH = "/usr/local/bin/chromedriver"

# Not all server implementations will support every WebDriver feature.
# Therefore, the client and server should use JSON objects with the properties
# listed below when describing which features a session supports.
capabilities = {
browserName: "chrome",
version: "",
platform: "ANY",
javascriptEnabled: true,
takesScreenshot: true,
handlesAlerts: true,
databaseEnabled: true,
locationContextEnabled: true,
applicationCacheEnabled: true,
browserConnectionEnabled: true,
cssSelectorsEnabled: true,
webStorageEnabled: true,
rotatable: true,
acceptSslCerts: true,
nativeEvents: true,
args: "--headless",
}
end
28 changes: 2 additions & 26 deletions basic/granite/app/spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,5 @@ Micrate::DB.connection_url = Amber.settings.database_url
# Automatically run migrations on the test database
Micrate::Cli.run_up

module Spec
DRIVER = :chrome
PATH = "/usr/local/bin/chromedriver"

# Not all server implementations will support every WebDriver feature.
# Therefore, the client and server should use JSON objects with the properties
# listed below when describing which features a session supports.
capabilities = {
browserName: "chrome",
version: "",
platform: "ANY",
javascriptEnabled: true,
takesScreenshot: true,
handlesAlerts: true,
databaseEnabled: true,
locationContextEnabled: true,
applicationCacheEnabled: true,
browserConnectionEnabled: true,
cssSelectorsEnabled: true,
webStorageEnabled: true,
rotatable: true,
acceptSslCerts: true,
nativeEvents: true,
args: "--headless",
}
end
# Disable Granite logs in tests
Granite.settings.logger = Logger.new nil
27 changes: 0 additions & 27 deletions default/app/spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,3 @@ Micrate::DB.connection_url = Amber.settings.database_url

# Automatically run migrations on the test database
Micrate::Cli.run_up

module Spec
DRIVER = :chrome
PATH = "/usr/local/bin/chromedriver"

# Not all server implementations will support every WebDriver feature.
# Therefore, the client and server should use JSON objects with the properties
# listed below when describing which features a session supports.
capabilities = {
browserName: "chrome",
version: "",
platform: "ANY",
javascriptEnabled: true,
takesScreenshot: true,
handlesAlerts: true,
databaseEnabled: true,
locationContextEnabled: true,
applicationCacheEnabled: true,
browserConnectionEnabled: true,
cssSelectorsEnabled: true,
webStorageEnabled: true,
rotatable: true,
acceptSslCerts: true,
nativeEvents: true,
args: "--headless",
}
end
27 changes: 0 additions & 27 deletions misc/modular/app/spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,3 @@ Micrate::DB.connection_url = Amber.settings.database_url

# Automatically run migrations on the test database
Micrate::Cli.run_up

module Spec
DRIVER = :chrome
PATH = "/usr/local/bin/chromedriver"

# Not all server implementations will support every WebDriver feature.
# Therefore, the client and server should use JSON objects with the properties
# listed below when describing which features a session supports.
capabilities = {
browserName: "chrome",
version: "",
platform: "ANY",
javascriptEnabled: true,
takesScreenshot: true,
handlesAlerts: true,
databaseEnabled: true,
locationContextEnabled: true,
applicationCacheEnabled: true,
browserConnectionEnabled: true,
cssSelectorsEnabled: true,
webStorageEnabled: true,
rotatable: true,
acceptSslCerts: true,
nativeEvents: true,
args: "--headless",
}
end
27 changes: 0 additions & 27 deletions react/preact_redux/app/spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,3 @@ Micrate::DB.connection_url = Amber.settings.database_url

# Automatically run migrations on the test database
Micrate::Cli.run_up

module Spec
DRIVER = :chrome
PATH = "/usr/local/bin/chromedriver"

# Not all server implementations will support every WebDriver feature.
# Therefore, the client and server should use JSON objects with the properties
# listed below when describing which features a session supports.
capabilities = {
browserName: "chrome",
version: "",
platform: "ANY",
javascriptEnabled: true,
takesScreenshot: true,
handlesAlerts: true,
databaseEnabled: true,
locationContextEnabled: true,
applicationCacheEnabled: true,
browserConnectionEnabled: true,
cssSelectorsEnabled: true,
webStorageEnabled: true,
rotatable: true,
acceptSslCerts: true,
nativeEvents: true,
args: "--headless",
}
end

0 comments on commit 6cec286

Please sign in to comment.