test_rails_js 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
data/lib/test_rails_js.rb
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
module TestRailsJs
|
2
2
|
def self.tests(&block)
|
3
3
|
Rails.application.config.assets.paths.inject([]) do |all_tests, path|
|
4
|
-
tests =
|
4
|
+
tests = []
|
5
|
+
Rails.application.config.test_rails_js.tests_paths.each do |test_path|
|
6
|
+
tests += Dir[path + test_path]
|
7
|
+
end
|
5
8
|
|
6
9
|
tests = block.call(tests, path) if block_given?
|
7
10
|
all_tests + tests
|
@@ -21,5 +24,6 @@ module TestRailsJs
|
|
21
24
|
config.test_rails_js.global_assets = ActiveSupport::OrderedOptions.new
|
22
25
|
config.test_rails_js.global_assets.javascripts = []
|
23
26
|
config.test_rails_js.global_assets.stylesheets = []
|
27
|
+
config.test_rails_js.tests_paths = [ "/*_tests.js", "/**/tests/**/*.js" ]
|
24
28
|
end
|
25
29
|
end
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_rails_js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,23 +9,43 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
default_executable:
|
12
|
+
date: 2012-04-27 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rails
|
17
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
|
-
- -
|
19
|
+
- - ! '>'
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 3.1.0
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>'
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.1.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.9.2
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.9.2
|
26
46
|
- !ruby/object:Gem::Dependency
|
27
47
|
name: sqlite3
|
28
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
29
49
|
none: false
|
30
50
|
requirements:
|
31
51
|
- - ! '>='
|
@@ -33,7 +53,12 @@ dependencies:
|
|
33
53
|
version: '0'
|
34
54
|
type: :development
|
35
55
|
prerelease: false
|
36
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
37
62
|
description: Test your rails JS in-browser.
|
38
63
|
email:
|
39
64
|
- Douglas.Meyer@Centro.net
|
@@ -48,42 +73,42 @@ files:
|
|
48
73
|
- app/helpers/js_tests_helper.rb
|
49
74
|
- config/routes.rb
|
50
75
|
- lib/test_rails_js/version.rb
|
51
|
-
- lib/test_rails_js.rb
|
52
76
|
- lib/tasks/test_rails_js_tasks.rake
|
77
|
+
- lib/test_rails_js.rb
|
53
78
|
- MIT-LICENSE
|
54
79
|
- Rakefile
|
55
80
|
- README.rdoc
|
56
|
-
- test/test_rails_js_test.rb
|
57
|
-
- test/test_helper.rb
|
58
|
-
- test/dummy/log/development.log
|
59
81
|
- test/dummy/config/boot.rb
|
82
|
+
- test/dummy/config/application.rb
|
60
83
|
- test/dummy/config/locales/en.yml
|
61
|
-
- test/dummy/config/environment.rb
|
62
|
-
- test/dummy/config/initializers/session_store.rb
|
63
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
64
|
-
- test/dummy/config/initializers/inflections.rb
|
65
84
|
- test/dummy/config/initializers/mime_types.rb
|
85
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
66
86
|
- test/dummy/config/initializers/secret_token.rb
|
87
|
+
- test/dummy/config/initializers/inflections.rb
|
88
|
+
- test/dummy/config/initializers/session_store.rb
|
67
89
|
- test/dummy/config/initializers/wrap_parameters.rb
|
68
|
-
- test/dummy/config/
|
69
|
-
- test/dummy/config/environments/development.rb
|
90
|
+
- test/dummy/config/environment.rb
|
70
91
|
- test/dummy/config/environments/production.rb
|
92
|
+
- test/dummy/config/environments/development.rb
|
93
|
+
- test/dummy/config/environments/test.rb
|
71
94
|
- test/dummy/config/database.yml
|
72
|
-
- test/dummy/config/application.rb
|
73
95
|
- test/dummy/config/routes.rb
|
96
|
+
- test/dummy/log/test.log
|
74
97
|
- test/dummy/script/rails
|
75
98
|
- test/dummy/config.ru
|
99
|
+
- test/dummy/Rakefile
|
100
|
+
- test/dummy/db/test.sqlite3
|
101
|
+
- test/dummy/public/500.html
|
102
|
+
- test/dummy/public/422.html
|
76
103
|
- test/dummy/public/404.html
|
77
104
|
- test/dummy/public/favicon.ico
|
78
|
-
- test/dummy/public/422.html
|
79
|
-
- test/dummy/public/500.html
|
80
|
-
- test/dummy/Rakefile
|
81
105
|
- test/dummy/app/views/layouts/application.html.erb
|
82
|
-
- test/dummy/app/controllers/application_controller.rb
|
83
106
|
- test/dummy/app/assets/javascripts/application.js
|
84
107
|
- test/dummy/app/assets/stylesheets/application.css
|
108
|
+
- test/dummy/app/controllers/application_controller.rb
|
85
109
|
- test/dummy/app/helpers/application_helper.rb
|
86
|
-
|
110
|
+
- test/test_rails_js_test.rb
|
111
|
+
- test/test_helper.rb
|
87
112
|
homepage: https://github.com/DouglasMeyer/test_rails_js
|
88
113
|
licenses: []
|
89
114
|
post_install_message:
|
@@ -96,46 +121,53 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
121
|
- - ! '>='
|
97
122
|
- !ruby/object:Gem::Version
|
98
123
|
version: '0'
|
124
|
+
segments:
|
125
|
+
- 0
|
126
|
+
hash: 2337099414767021919
|
99
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
128
|
none: false
|
101
129
|
requirements:
|
102
130
|
- - ! '>='
|
103
131
|
- !ruby/object:Gem::Version
|
104
132
|
version: '0'
|
133
|
+
segments:
|
134
|
+
- 0
|
135
|
+
hash: 2337099414767021919
|
105
136
|
requirements: []
|
106
137
|
rubyforge_project:
|
107
|
-
rubygems_version: 1.
|
138
|
+
rubygems_version: 1.8.21
|
108
139
|
signing_key:
|
109
140
|
specification_version: 3
|
110
141
|
summary: Test your rails JS in-browser.
|
111
142
|
test_files:
|
112
|
-
- test/test_rails_js_test.rb
|
113
|
-
- test/test_helper.rb
|
114
|
-
- test/dummy/log/development.log
|
115
143
|
- test/dummy/config/boot.rb
|
144
|
+
- test/dummy/config/application.rb
|
116
145
|
- test/dummy/config/locales/en.yml
|
117
|
-
- test/dummy/config/environment.rb
|
118
|
-
- test/dummy/config/initializers/session_store.rb
|
119
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
120
|
-
- test/dummy/config/initializers/inflections.rb
|
121
146
|
- test/dummy/config/initializers/mime_types.rb
|
147
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
122
148
|
- test/dummy/config/initializers/secret_token.rb
|
149
|
+
- test/dummy/config/initializers/inflections.rb
|
150
|
+
- test/dummy/config/initializers/session_store.rb
|
123
151
|
- test/dummy/config/initializers/wrap_parameters.rb
|
124
|
-
- test/dummy/config/
|
125
|
-
- test/dummy/config/environments/development.rb
|
152
|
+
- test/dummy/config/environment.rb
|
126
153
|
- test/dummy/config/environments/production.rb
|
154
|
+
- test/dummy/config/environments/development.rb
|
155
|
+
- test/dummy/config/environments/test.rb
|
127
156
|
- test/dummy/config/database.yml
|
128
|
-
- test/dummy/config/application.rb
|
129
157
|
- test/dummy/config/routes.rb
|
158
|
+
- test/dummy/log/test.log
|
130
159
|
- test/dummy/script/rails
|
131
160
|
- test/dummy/config.ru
|
161
|
+
- test/dummy/Rakefile
|
162
|
+
- test/dummy/db/test.sqlite3
|
163
|
+
- test/dummy/public/500.html
|
164
|
+
- test/dummy/public/422.html
|
132
165
|
- test/dummy/public/404.html
|
133
166
|
- test/dummy/public/favicon.ico
|
134
|
-
- test/dummy/public/422.html
|
135
|
-
- test/dummy/public/500.html
|
136
|
-
- test/dummy/Rakefile
|
137
167
|
- test/dummy/app/views/layouts/application.html.erb
|
138
|
-
- test/dummy/app/controllers/application_controller.rb
|
139
168
|
- test/dummy/app/assets/javascripts/application.js
|
140
169
|
- test/dummy/app/assets/stylesheets/application.css
|
170
|
+
- test/dummy/app/controllers/application_controller.rb
|
141
171
|
- test/dummy/app/helpers/application_helper.rb
|
172
|
+
- test/test_rails_js_test.rb
|
173
|
+
- test/test_helper.rb
|