honkster-js-test-server 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +40 -0
- data/Gemfile +21 -0
- data/Gemfile.lock +60 -0
- data/README.markdown +9 -0
- data/Rakefile +67 -0
- data/bin/jasmine-server +9 -0
- data/bin/js-test-client +8 -0
- data/bin/js-test-server +9 -0
- data/bin/screw-unit-server +9 -0
- data/lib/js_test_server.rb +29 -0
- data/lib/js_test_server/client.rb +23 -0
- data/lib/js_test_server/client/runner.rb +130 -0
- data/lib/js_test_server/configuration.rb +69 -0
- data/lib/js_test_server/server.rb +14 -0
- data/lib/js_test_server/server/app.rb +10 -0
- data/lib/js_test_server/server/resources.rb +14 -0
- data/lib/js_test_server/server/resources/file.rb +58 -0
- data/lib/js_test_server/server/resources/framework_file.rb +15 -0
- data/lib/js_test_server/server/resources/implementations_deprecation.rb +8 -0
- data/lib/js_test_server/server/resources/not_found.rb +25 -0
- data/lib/js_test_server/server/resources/remote_control.rb +80 -0
- data/lib/js_test_server/server/resources/resource.rb +12 -0
- data/lib/js_test_server/server/resources/spec_file.rb +47 -0
- data/lib/js_test_server/server/resources/web_root.rb +17 -0
- data/lib/js_test_server/server/runner.rb +77 -0
- data/lib/js_test_server/server/standalone.ru +1 -0
- data/lib/js_test_server/server/views.rb +12 -0
- data/lib/js_test_server/server/views/dir.html.rb +22 -0
- data/lib/js_test_server/server/views/frameworks.rb +3 -0
- data/lib/js_test_server/server/views/not_found.html.rb +13 -0
- data/lib/js_test_server/server/views/page.html.rb +40 -0
- data/lib/js_test_server/server/views/remote_control_subscriber.rb +17 -0
- data/lib/js_test_server/server/views/suite.html.rb +54 -0
- data/lib/js_test_server/server/views/suites.rb +6 -0
- data/lib/js_test_server/server/views/suites/jasmine.html.rb +30 -0
- data/lib/js_test_server/server/views/suites/screw_unit.html.rb +44 -0
- data/public/js_test_server.js +565 -0
- data/public/js_test_server/jasmine_driver.js +63 -0
- data/public/js_test_server/remote_control.js +28 -0
- data/public/js_test_server/screw_unit_driver.js +31 -0
- data/scratch.rb +8 -0
- data/spec/frameworks/jasmine/cruise_config.rb +21 -0
- data/spec/frameworks/jasmine/spec/jasmine_helper.rb +44 -0
- data/spec/frameworks/jasmine/spec/jasmine_spec.rb +31 -0
- data/spec/functional/functional_spec_helper.rb +55 -0
- data/spec/functional/functional_spec_server_starter.rb +69 -0
- data/spec/functional/jasmine/jasmine_functional_spec.rb +27 -0
- data/spec/functional/screw-unit/screw_unit_functional_spec.rb +27 -0
- data/spec/functional_suite.rb +16 -0
- data/spec/spec_helpers/be_http.rb +32 -0
- data/spec/spec_helpers/example_group.rb +41 -0
- data/spec/spec_helpers/fake_deferrable.rb +3 -0
- data/spec/spec_helpers/fake_selenium_driver.rb +16 -0
- data/spec/spec_helpers/mock_session.rb +30 -0
- data/spec/spec_helpers/show_test_exceptions.rb +22 -0
- data/spec/spec_helpers/wait_for.rb +11 -0
- data/spec/spec_suite.rb +3 -0
- data/spec/unit/js_test_core/client/runner_spec.rb +198 -0
- data/spec/unit/js_test_core/configuration_spec.rb +44 -0
- data/spec/unit/js_test_core/resources/file_spec.rb +79 -0
- data/spec/unit/js_test_core/resources/framework_file_spec.rb +58 -0
- data/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb +16 -0
- data/spec/unit/js_test_core/resources/not_found_spec.rb +49 -0
- data/spec/unit/js_test_core/resources/remote_control_spec.rb +117 -0
- data/spec/unit/js_test_core/resources/spec_file_spec.rb +147 -0
- data/spec/unit/js_test_core/resources/web_root_spec.rb +26 -0
- data/spec/unit/js_test_core/server/server_spec.rb +103 -0
- data/spec/unit/unit_spec_helper.rb +34 -0
- data/spec/unit_suite.rb +10 -0
- data/vendor/lucky-luciano/lib/lucky_luciano.rb +5 -0
- data/vendor/lucky-luciano/lib/lucky_luciano/resource.rb +142 -0
- data/vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb +24 -0
- data/vendor/lucky-luciano/lib/lucky_luciano/rspec.rb +4 -0
- data/vendor/lucky-luciano/lib/lucky_luciano/rspec/be_http.rb +32 -0
- data/vendor/lucky-luciano/spec/lucky_luciano/resource_spec.rb +276 -0
- data/vendor/lucky-luciano/spec/spec_helper.rb +48 -0
- data/vendor/lucky-luciano/spec/spec_suite.rb +4 -0
- metadata +146 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "spec"
|
3
|
+
require "spec/autorun"
|
4
|
+
require 'rack/test'
|
5
|
+
require "rr"
|
6
|
+
require "sinatra"
|
7
|
+
|
8
|
+
ARGV.push("-b")
|
9
|
+
|
10
|
+
dir = File.dirname(__FILE__)
|
11
|
+
$:.unshift File.expand_path("#{dir}/../lib")
|
12
|
+
require "lucky_luciano"
|
13
|
+
require "lucky_luciano/rspec"
|
14
|
+
|
15
|
+
set :environment, :test
|
16
|
+
|
17
|
+
class Spec::ExampleGroup
|
18
|
+
include BeHttp
|
19
|
+
class << self
|
20
|
+
def macro(name, &block)
|
21
|
+
eigen do
|
22
|
+
define_method(name, &block)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def eigen(&block)
|
27
|
+
eigen_class = (class << self; self; end)
|
28
|
+
eigen_class.class_eval(&block)
|
29
|
+
eigen_class
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
include Rack::Test::Methods
|
34
|
+
|
35
|
+
before do
|
36
|
+
app.routes.clear
|
37
|
+
Sinatra::Default.routes.clear
|
38
|
+
app.reset!
|
39
|
+
end
|
40
|
+
|
41
|
+
def app
|
42
|
+
Sinatra::Application
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
Spec::SeleniumSession.configure do |config|
|
47
|
+
config.mock_with :rr
|
48
|
+
end
|
metadata
ADDED
@@ -0,0 +1,146 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: honkster-js-test-server
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 5
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 9
|
10
|
+
version: 0.2.9
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Brian Takita
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-11-29 00:00:00 -08:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: The JsTestServer library is the core javascript test server library used by several JS Test server libraries.
|
23
|
+
email: brian.takita@gmail.com
|
24
|
+
executables:
|
25
|
+
- js-test-client
|
26
|
+
- jasmine-server
|
27
|
+
- js-test-server
|
28
|
+
- screw-unit-server
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files: []
|
32
|
+
|
33
|
+
files:
|
34
|
+
- README.markdown
|
35
|
+
- Gemfile.lock
|
36
|
+
- Gemfile
|
37
|
+
- CHANGES
|
38
|
+
- Rakefile
|
39
|
+
- scratch.rb
|
40
|
+
- lib/js_test_server.rb
|
41
|
+
- lib/js_test_server/server.rb
|
42
|
+
- lib/js_test_server/client/runner.rb
|
43
|
+
- lib/js_test_server/client.rb
|
44
|
+
- lib/js_test_server/configuration.rb
|
45
|
+
- lib/js_test_server/server/runner.rb
|
46
|
+
- lib/js_test_server/server/resources.rb
|
47
|
+
- lib/js_test_server/server/views.rb
|
48
|
+
- lib/js_test_server/server/resources/file.rb
|
49
|
+
- lib/js_test_server/server/resources/remote_control.rb
|
50
|
+
- lib/js_test_server/server/resources/spec_file.rb
|
51
|
+
- lib/js_test_server/server/resources/resource.rb
|
52
|
+
- lib/js_test_server/server/resources/web_root.rb
|
53
|
+
- lib/js_test_server/server/resources/framework_file.rb
|
54
|
+
- lib/js_test_server/server/resources/implementations_deprecation.rb
|
55
|
+
- lib/js_test_server/server/resources/not_found.rb
|
56
|
+
- lib/js_test_server/server/standalone.ru
|
57
|
+
- lib/js_test_server/server/views/page.html.rb
|
58
|
+
- lib/js_test_server/server/views/remote_control_subscriber.rb
|
59
|
+
- lib/js_test_server/server/views/frameworks.rb
|
60
|
+
- lib/js_test_server/server/views/suites.rb
|
61
|
+
- lib/js_test_server/server/views/suites/jasmine.html.rb
|
62
|
+
- lib/js_test_server/server/views/suites/screw_unit.html.rb
|
63
|
+
- lib/js_test_server/server/views/not_found.html.rb
|
64
|
+
- lib/js_test_server/server/views/dir.html.rb
|
65
|
+
- lib/js_test_server/server/views/suite.html.rb
|
66
|
+
- lib/js_test_server/server/app.rb
|
67
|
+
- bin/js-test-client
|
68
|
+
- bin/jasmine-server
|
69
|
+
- bin/js-test-server
|
70
|
+
- bin/screw-unit-server
|
71
|
+
- public/js_test_server/screw_unit_driver.js
|
72
|
+
- public/js_test_server/jasmine_driver.js
|
73
|
+
- public/js_test_server/remote_control.js
|
74
|
+
- public/js_test_server.js
|
75
|
+
- spec/unit_suite.rb
|
76
|
+
- spec/spec_suite.rb
|
77
|
+
- spec/functional/jasmine/jasmine_functional_spec.rb
|
78
|
+
- spec/functional/screw-unit/screw_unit_functional_spec.rb
|
79
|
+
- spec/functional/functional_spec_helper.rb
|
80
|
+
- spec/functional/functional_spec_server_starter.rb
|
81
|
+
- spec/unit/unit_spec_helper.rb
|
82
|
+
- spec/unit/js_test_core/resources/spec_file_spec.rb
|
83
|
+
- spec/unit/js_test_core/resources/not_found_spec.rb
|
84
|
+
- spec/unit/js_test_core/resources/framework_file_spec.rb
|
85
|
+
- spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
|
86
|
+
- spec/unit/js_test_core/resources/remote_control_spec.rb
|
87
|
+
- spec/unit/js_test_core/resources/file_spec.rb
|
88
|
+
- spec/unit/js_test_core/resources/web_root_spec.rb
|
89
|
+
- spec/unit/js_test_core/client/runner_spec.rb
|
90
|
+
- spec/unit/js_test_core/configuration_spec.rb
|
91
|
+
- spec/unit/js_test_core/server/server_spec.rb
|
92
|
+
- spec/functional_suite.rb
|
93
|
+
- spec/frameworks/jasmine/cruise_config.rb
|
94
|
+
- spec/frameworks/jasmine/spec/jasmine_helper.rb
|
95
|
+
- spec/frameworks/jasmine/spec/jasmine_spec.rb
|
96
|
+
- spec/spec_helpers/show_test_exceptions.rb
|
97
|
+
- spec/spec_helpers/be_http.rb
|
98
|
+
- spec/spec_helpers/mock_session.rb
|
99
|
+
- spec/spec_helpers/example_group.rb
|
100
|
+
- spec/spec_helpers/fake_selenium_driver.rb
|
101
|
+
- spec/spec_helpers/fake_deferrable.rb
|
102
|
+
- spec/spec_helpers/wait_for.rb
|
103
|
+
- vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
|
104
|
+
- vendor/lucky-luciano/lib/lucky_luciano/rspec.rb
|
105
|
+
- vendor/lucky-luciano/lib/lucky_luciano/rspec/be_http.rb
|
106
|
+
- vendor/lucky-luciano/lib/lucky_luciano/resource.rb
|
107
|
+
- vendor/lucky-luciano/lib/lucky_luciano.rb
|
108
|
+
- vendor/lucky-luciano/spec/spec_helper.rb
|
109
|
+
- vendor/lucky-luciano/spec/lucky_luciano/resource_spec.rb
|
110
|
+
- vendor/lucky-luciano/spec/spec_suite.rb
|
111
|
+
has_rdoc: true
|
112
|
+
homepage: http://github.com/honkster/js-test-server
|
113
|
+
licenses: []
|
114
|
+
|
115
|
+
post_install_message:
|
116
|
+
rdoc_options: []
|
117
|
+
|
118
|
+
require_paths:
|
119
|
+
- lib
|
120
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
hash: 3
|
126
|
+
segments:
|
127
|
+
- 0
|
128
|
+
version: "0"
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
hash: 3
|
135
|
+
segments:
|
136
|
+
- 0
|
137
|
+
version: "0"
|
138
|
+
requirements: []
|
139
|
+
|
140
|
+
rubyforge_project:
|
141
|
+
rubygems_version: 1.3.7
|
142
|
+
signing_key:
|
143
|
+
specification_version: 3
|
144
|
+
summary: The JsTestServer library is the core javascript test server library used by several JS Test server libraries.
|
145
|
+
test_files: []
|
146
|
+
|