Permalink
Browse files

Add UJS tests

  • Loading branch information...
guilleiguaran committed Nov 26, 2016
1 parent ad3a477 commit 02568801e6e34ee1ccbb825c6a10dfab83d1663e
@@ -0,0 +1,7 @@
== Running UJS tests
Ensure that you can build the project and run tests.
Run rake ujs:server first, and then run the web tests by
visiting http://localhost:4567 in your browser.
rake test:server
View
@@ -46,6 +46,13 @@ namespace :test do
end
end
namespace :ujs do
desc "Starts the test server"
task :server do
system 'bundle exec rackup test/ujs/config.ru -p 4567 -s puma'
end
end
task :lines do
load File.expand_path("..", File.dirname(__FILE__)) + "/tools/line_statistics"
files = FileList["lib/**/*.rb"]
@@ -0,0 +1 @@
/log
@@ -0,0 +1,3 @@
$LOAD_PATH.unshift File.expand_path('..', __FILE__)
require 'server'
run UJS::Server
@@ -0,0 +1,21 @@
env:
browser: true
extends: eslint:recommended
rules:
no-undef: off
no-unused-vars: off
indent: off
linebreak-style: ['error', 'unix']
quotes: ['error', 'single']
semi: ['error', 'never']
no-shadow: ['error'] # Prevent potential errors
no-console: 'off'
# styles
space-before-function-paren: ['error', 'never']
space-before-blocks: 'error'
brace-style: ['error', '1tbs', { allowSingleLine: true }]
key-spacing: 'error'
array-bracket-spacing: 'error'
comma-spacing: 'error'
comma-dangle: 'off'
eol-last: 'error'
Oops, something went wrong.

0 comments on commit 0256880

Please sign in to comment.