Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

Commit 3bab045

Browse files
author
bodrovis
committed
tests
1 parent 5229e5a commit 3bab045

20 files changed

+401
-46
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: ruby
2+
3+
rvm:
4+
- 1.9.3
5+
- 2.0.0
6+
- 2.1.5
7+
- 2.2.2
8+
- jruby
9+
- rbx
10+
11+
install: bundle install --retry=3

Gemfile.lock

Lines changed: 75 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -7,67 +7,98 @@ PATH
77
GEM
88
remote: http://rubygems.org/
99
specs:
10-
actionpack (4.2.5)
11-
actionview (= 4.2.5)
12-
activesupport (= 4.2.5)
13-
rack (~> 1.6)
14-
rack-test (~> 0.6.2)
15-
rails-dom-testing (~> 1.0, >= 1.0.5)
16-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
17-
actionview (4.2.5)
18-
activesupport (= 4.2.5)
19-
builder (~> 3.1)
10+
actionmailer (3.2.22)
11+
actionpack (= 3.2.22)
12+
mail (~> 2.5.4)
13+
actionpack (3.2.22)
14+
activemodel (= 3.2.22)
15+
activesupport (= 3.2.22)
16+
builder (~> 3.0.0)
2017
erubis (~> 2.7.0)
21-
rails-dom-testing (~> 1.0, >= 1.0.5)
22-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
23-
activesupport (4.2.5)
24-
i18n (~> 0.7)
25-
json (~> 1.7, >= 1.7.7)
26-
minitest (~> 5.1)
27-
thread_safe (~> 0.3, >= 0.3.4)
28-
tzinfo (~> 1.1)
29-
builder (3.2.2)
18+
journey (~> 1.0.4)
19+
rack (~> 1.4.5)
20+
rack-cache (~> 1.2)
21+
rack-test (~> 0.6.1)
22+
sprockets (~> 2.2.1)
23+
activemodel (3.2.22)
24+
activesupport (= 3.2.22)
25+
builder (~> 3.0.0)
26+
activerecord (3.2.22)
27+
activemodel (= 3.2.22)
28+
activesupport (= 3.2.22)
29+
arel (~> 3.0.2)
30+
tzinfo (~> 0.3.29)
31+
activeresource (3.2.22)
32+
activemodel (= 3.2.22)
33+
activesupport (= 3.2.22)
34+
activesupport (3.2.22)
35+
i18n (~> 0.6, >= 0.6.4)
36+
multi_json (~> 1.0)
37+
arel (3.0.3)
38+
builder (3.0.4)
3039
erubis (2.7.0)
40+
hike (1.2.3)
3141
i18n (0.7.0)
32-
jquery-rails (4.0.5)
33-
rails-dom-testing (~> 1.0)
34-
railties (>= 4.2.0)
42+
journey (1.0.4)
43+
jquery-rails (3.1.4)
44+
railties (>= 3.0, < 5.0)
3545
thor (>= 0.14, < 2.0)
3646
json (1.8.3)
37-
loofah (2.0.3)
38-
nokogiri (>= 1.5.9)
39-
mini_portile2 (2.0.0)
40-
minitest (5.8.3)
41-
nokogiri (1.6.7)
42-
mini_portile2 (~> 2.0.0.rc2)
43-
rack (1.6.4)
47+
mail (2.5.4)
48+
mime-types (~> 1.16)
49+
treetop (~> 1.4.8)
50+
mime-types (1.25.1)
51+
multi_json (1.11.2)
52+
polyglot (0.3.5)
53+
power_assert (0.2.6)
54+
rack (1.4.7)
55+
rack-cache (1.5.1)
56+
rack (>= 0.4)
57+
rack-ssl (1.3.4)
58+
rack
4459
rack-test (0.6.3)
4560
rack (>= 1.0)
46-
rails-deprecated_sanitizer (1.0.3)
47-
activesupport (>= 4.2.0.alpha)
48-
rails-dom-testing (1.0.7)
49-
activesupport (>= 4.2.0.beta, < 5.0)
50-
nokogiri (~> 1.6.0)
51-
rails-deprecated_sanitizer (>= 1.0.1)
52-
rails-html-sanitizer (1.0.2)
53-
loofah (~> 2.0)
54-
railties (4.2.5)
55-
actionpack (= 4.2.5)
56-
activesupport (= 4.2.5)
61+
rails (3.2.22)
62+
actionmailer (= 3.2.22)
63+
actionpack (= 3.2.22)
64+
activerecord (= 3.2.22)
65+
activeresource (= 3.2.22)
66+
activesupport (= 3.2.22)
67+
bundler (~> 1.0)
68+
railties (= 3.2.22)
69+
railties (3.2.22)
70+
actionpack (= 3.2.22)
71+
activesupport (= 3.2.22)
72+
rack-ssl (~> 1.3.2)
5773
rake (>= 0.8.7)
58-
thor (>= 0.18.1, < 2.0)
74+
rdoc (~> 3.4)
75+
thor (>= 0.14.6, < 2.0)
5976
rake (10.4.2)
77+
rdoc (3.12.2)
78+
json (~> 1.4)
79+
sprockets (2.2.3)
80+
hike (~> 1.2)
81+
multi_json (~> 1.0)
82+
rack (~> 1.0)
83+
tilt (~> 1.1, != 1.3.0)
84+
test-unit (3.1.5)
85+
power_assert
6086
thor (0.19.1)
61-
thread_safe (0.3.5)
62-
tzinfo (1.2.2)
63-
thread_safe (~> 0.1)
87+
tilt (1.4.1)
88+
treetop (1.4.15)
89+
polyglot
90+
polyglot (>= 0.3.1)
91+
tzinfo (0.3.45)
6492

6593
PLATFORMS
6694
ruby
95+
x86-mingw32
6796

6897
DEPENDENCIES
6998
jquery-rails
7099
jquery-slick-rails!
100+
rails (~> 3.2.12)
101+
test-unit (~> 3.0)
71102

72103
BUNDLED WITH
73104
1.10.6

Rakefile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
11
#!/usr/bin/env rake
2-
require "bundler/gem_tasks"
2+
require 'rake/testtask'
3+
4+
begin
5+
require 'bundler/setup'
6+
require 'bundler/gem_tasks'
7+
rescue LoadError
8+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
9+
end
10+
11+
Rake::TestTask.new(:test) do |t|
12+
t.libs << 'lib'
13+
t.libs << 'test'
14+
t.pattern = 'test/**/*_test.rb'
15+
t.verbose = false
16+
end
17+
18+
task :default => :test

jquery-slick-rails.gemspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Gem::Specification.new do |s|
1515
s.test_files = s.files.grep(%r{^(test|spec|features)/})
1616
s.require_paths = ["lib"]
1717
s.license = 'MIT'
18+
s.test_files = Dir["test/**/*"]
1819

19-
s.add_runtime_dependency 'railties', '>= 3.1'
20+
s.add_dependency 'railties', '>= 3.1'
21+
s.add_development_dependency "rails", "~> 3.2.12"
22+
s.add_development_dependency 'test-unit', '~> 3.0'
2023
end

test/dummy/Rakefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env rake
2+
# Add your own tasks in files placed in lib/tasks ending in .rake,
3+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4+
5+
require File.expand_path('../config/application', __FILE__)
6+
7+
Dummy::Application.load_tasks

test/dummy/config.ru

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This file is used by Rack-based servers to start the application.
2+
3+
require ::File.expand_path('../config/environment', __FILE__)
4+
run Dummy::Application

test/dummy/config/application.rb

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
require File.expand_path('../boot', __FILE__)
2+
3+
# Pick the frameworks you want:
4+
# require "active_record/railtie"
5+
# require "action_controller/railtie"
6+
require "action_mailer/railtie"
7+
# require "active_resource/railtie"
8+
require "sprockets/railtie"
9+
# require "rails/test_unit/railtie"
10+
11+
Bundler.require
12+
require "jquery-slick-rails"
13+
14+
module Dummy
15+
class Application < Rails::Application
16+
# Settings in config/environments/* take precedence over those specified here.
17+
# Application configuration should go into files in config/initializers
18+
# -- all .rb files in that directory are automatically loaded.
19+
20+
# Custom directories with classes and modules you want to be autoloadable.
21+
# config.autoload_paths += %W(#{config.root}/extras)
22+
23+
# Only load the plugins named here, in the order given (default is alphabetical).
24+
# :all can be used as a placeholder for all plugins not explicitly named.
25+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
26+
27+
# Activate observers that should always be running.
28+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
29+
30+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
31+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
32+
# config.time_zone = 'Central Time (US & Canada)'
33+
34+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
35+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
36+
# config.i18n.default_locale = :de
37+
38+
# Configure the default encoding used in templates for Ruby 1.9.
39+
config.encoding = "utf-8"
40+
41+
# Configure sensitive parameters which will be filtered from the log file.
42+
config.filter_parameters += [:password]
43+
44+
# Enable escaping HTML in JSON.
45+
config.active_support.escape_html_entities_in_json = true
46+
47+
# Use SQL instead of Active Record's schema dumper when creating the database.
48+
# This is necessary if your schema can't be completely dumped by the schema dumper,
49+
# like if you have constraints or database-specific column types
50+
# config.active_record.schema_format = :sql
51+
52+
# Enforce whitelist mode for mass assignment.
53+
# This will create an empty whitelist of attributes available for mass-assignment for all models
54+
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
55+
# parameters by using an attr_accessible or attr_protected declaration.
56+
# config.active_record.whitelist_attributes = true
57+
58+
# Enable the asset pipeline
59+
config.assets.enabled = true
60+
61+
# Version of your assets, change this if you want to expire all your assets
62+
config.assets.version = '1.0'
63+
end
64+
end
65+

test/dummy/config/boot.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require 'rubygems'
2+
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3+
4+
if File.exist?(gemfile)
5+
ENV['BUNDLE_GEMFILE'] = gemfile
6+
require 'bundler'
7+
Bundler.setup
8+
end
9+
10+
$:.unshift File.expand_path('../../../../lib', __FILE__)

test/dummy/config/environment.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Load the rails application
2+
require File.expand_path('../application', __FILE__)
3+
4+
# Initialize the rails application
5+
Dummy::Application.initialize!
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Dummy::Application.configure do
2+
# Settings specified here will take precedence over those in config/application.rb
3+
4+
# In the development environment your application's code is reloaded on
5+
# every request. This slows down response time but is perfect for development
6+
# since you don't have to restart the web server when you make code changes.
7+
config.cache_classes = false
8+
9+
# Log error messages when you accidentally call methods on nil.
10+
config.whiny_nils = true
11+
12+
# Show full error reports and disable caching
13+
config.consider_all_requests_local = true
14+
config.action_controller.perform_caching = false
15+
16+
# Don't care if the mailer can't send
17+
config.action_mailer.raise_delivery_errors = false
18+
19+
# Print deprecation notices to the Rails logger
20+
config.active_support.deprecation = :log
21+
22+
# Only use best-standards-support built into browsers
23+
config.action_dispatch.best_standards_support = :builtin
24+
25+
26+
# Do not compress assets
27+
config.assets.compress = false
28+
29+
# Expands the lines which load the assets
30+
config.assets.debug = true
31+
end
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
Dummy::Application.configure do
2+
# Settings specified here will take precedence over those in config/application.rb
3+
4+
# Code is not reloaded between requests
5+
config.cache_classes = true
6+
7+
# Full error reports are disabled and caching is turned on
8+
config.consider_all_requests_local = false
9+
config.action_controller.perform_caching = true
10+
11+
# Disable Rails's static asset server (Apache or nginx will already do this)
12+
config.serve_static_assets = false
13+
14+
# Compress JavaScripts and CSS
15+
config.assets.compress = true
16+
17+
# Don't fallback to assets pipeline if a precompiled asset is missed
18+
config.assets.compile = false
19+
20+
# Generate digests for assets URLs
21+
config.assets.digest = true
22+
23+
# Defaults to nil and saved in location specified by config.assets.prefix
24+
# config.assets.manifest = YOUR_PATH
25+
26+
# Specifies the header that your server uses for sending files
27+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29+
30+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31+
# config.force_ssl = true
32+
33+
# See everything in the log (default is :info)
34+
# config.log_level = :debug
35+
36+
# Prepend all log lines with the following tags
37+
# config.log_tags = [ :subdomain, :uuid ]
38+
39+
# Use a different logger for distributed setups
40+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41+
42+
# Use a different cache store in production
43+
# config.cache_store = :mem_cache_store
44+
45+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
46+
# config.action_controller.asset_host = "http://assets.example.com"
47+
48+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49+
# config.assets.precompile += %w( search.js )
50+
51+
# Disable delivery errors, bad email addresses will be ignored
52+
# config.action_mailer.raise_delivery_errors = false
53+
54+
# Enable threaded mode
55+
# config.threadsafe!
56+
57+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58+
# the I18n.default_locale when a translation can not be found)
59+
config.i18n.fallbacks = true
60+
61+
# Send deprecation notices to registered listeners
62+
config.active_support.deprecation = :notify
63+
64+
end

0 commit comments

Comments
 (0)