wschenk-ws_api 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +7 -0
- data/LICENSE +20 -0
- data/README.rdoc +16 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/example/Rakefile +10 -0
- data/example/app/controllers/application.rb +15 -0
- data/example/app/controllers/user_controller.rb +12 -0
- data/example/app/controllers/workstreamer_controller.rb +154 -0
- data/example/app/helpers/application_helper.rb +3 -0
- data/example/app/helpers/user_helper.rb +2 -0
- data/example/app/helpers/workstreamer_helper.rb +2 -0
- data/example/app/models/user.rb +2 -0
- data/example/app/views/layouts/application.rhtml +158 -0
- data/example/app/views/workstreamer/index.html.erb +1 -0
- data/example/app/views/workstreamer/info.html.erb +25 -0
- data/example/app/views/workstreamer/stream.html.erb +24 -0
- data/example/config/boot.rb +109 -0
- data/example/config/database.yml +22 -0
- data/example/config/environment.rb +77 -0
- data/example/config/environments/development.rb +17 -0
- data/example/config/environments/production.rb +24 -0
- data/example/config/environments/test.rb +22 -0
- data/example/config/initializers/inflections.rb +10 -0
- data/example/config/initializers/mime_types.rb +5 -0
- data/example/config/initializers/new_rails_defaults.rb +17 -0
- data/example/config/locales/en.yml +5 -0
- data/example/config/routes.rb +43 -0
- data/example/db/migrate/20090611183940_create_users.rb +15 -0
- data/example/db/schema.rb +23 -0
- data/example/doc/README_FOR_APP +5 -0
- data/example/public/404.html +30 -0
- data/example/public/422.html +30 -0
- data/example/public/500.html +33 -0
- data/example/public/dispatch.cgi +10 -0
- data/example/public/dispatch.fcgi +24 -0
- data/example/public/dispatch.rb +10 -0
- data/example/public/favicon.ico +0 -0
- data/example/public/images/rails.png +0 -0
- data/example/public/javascripts/application.js +2 -0
- data/example/public/javascripts/controls.js +963 -0
- data/example/public/javascripts/dragdrop.js +973 -0
- data/example/public/javascripts/effects.js +1128 -0
- data/example/public/javascripts/prototype.js +4320 -0
- data/example/public/robots.txt +5 -0
- data/example/script/about +4 -0
- data/example/script/console +3 -0
- data/example/script/dbconsole +3 -0
- data/example/script/destroy +3 -0
- data/example/script/generate +3 -0
- data/example/script/performance/benchmarker +3 -0
- data/example/script/performance/profiler +3 -0
- data/example/script/performance/request +3 -0
- data/example/script/plugin +3 -0
- data/example/script/process/inspector +3 -0
- data/example/script/process/reaper +3 -0
- data/example/script/process/spawner +3 -0
- data/example/script/runner +3 -0
- data/example/script/server +3 -0
- data/example/test/fixtures/users.yml +7 -0
- data/example/test/functional/user_controller_test.rb +8 -0
- data/example/test/functional/workstreamer_controller_test.rb +8 -0
- data/example/test/performance/browsing_test.rb +9 -0
- data/example/test/test_helper.rb +38 -0
- data/example/test/unit/user_test.rb +8 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/ws_api_spec.rb +7 -0
- metadata +131 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
3
|
+
require 'test_help'
|
4
|
+
|
5
|
+
class Test::Unit::TestCase
|
6
|
+
# Transactional fixtures accelerate your tests by wrapping each test method
|
7
|
+
# in a transaction that's rolled back on completion. This ensures that the
|
8
|
+
# test database remains unchanged so your fixtures don't have to be reloaded
|
9
|
+
# between every test method. Fewer database queries means faster tests.
|
10
|
+
#
|
11
|
+
# Read Mike Clark's excellent walkthrough at
|
12
|
+
# http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
|
13
|
+
#
|
14
|
+
# Every Active Record database supports transactions except MyISAM tables
|
15
|
+
# in MySQL. Turn off transactional fixtures in this case; however, if you
|
16
|
+
# don't care one way or the other, switching from MyISAM to InnoDB tables
|
17
|
+
# is recommended.
|
18
|
+
#
|
19
|
+
# The only drawback to using transactional fixtures is when you actually
|
20
|
+
# need to test transactions. Since your test is bracketed by a transaction,
|
21
|
+
# any transactions started in your code will be automatically rolled back.
|
22
|
+
self.use_transactional_fixtures = true
|
23
|
+
|
24
|
+
# Instantiated fixtures are slow, but give you @david where otherwise you
|
25
|
+
# would need people(:david). If you don't want to migrate your existing
|
26
|
+
# test cases which use the @david style and don't mind the speed hit (each
|
27
|
+
# instantiated fixtures translates to a database query per test method),
|
28
|
+
# then set this back to true.
|
29
|
+
self.use_instantiated_fixtures = false
|
30
|
+
|
31
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
32
|
+
#
|
33
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
34
|
+
# -- they do not yet inherit this setting
|
35
|
+
fixtures :all
|
36
|
+
|
37
|
+
# Add more helper methods to be used by all tests here...
|
38
|
+
end
|
data/spec/spec_helper.rb
ADDED
data/spec/ws_api_spec.rb
ADDED
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wschenk-ws_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Will Schenk
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-06-24 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: oauth
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
description:
|
26
|
+
email: wschenk@gmail.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- LICENSE
|
33
|
+
- README.rdoc
|
34
|
+
files:
|
35
|
+
- .document
|
36
|
+
- .gitignore
|
37
|
+
- LICENSE
|
38
|
+
- README.rdoc
|
39
|
+
- Rakefile
|
40
|
+
- VERSION
|
41
|
+
- example/Rakefile
|
42
|
+
- example/app/controllers/application.rb
|
43
|
+
- example/app/controllers/user_controller.rb
|
44
|
+
- example/app/controllers/workstreamer_controller.rb
|
45
|
+
- example/app/helpers/application_helper.rb
|
46
|
+
- example/app/helpers/user_helper.rb
|
47
|
+
- example/app/helpers/workstreamer_helper.rb
|
48
|
+
- example/app/models/user.rb
|
49
|
+
- example/app/views/layouts/application.rhtml
|
50
|
+
- example/app/views/workstreamer/index.html.erb
|
51
|
+
- example/app/views/workstreamer/info.html.erb
|
52
|
+
- example/app/views/workstreamer/stream.html.erb
|
53
|
+
- example/config/boot.rb
|
54
|
+
- example/config/database.yml
|
55
|
+
- example/config/environment.rb
|
56
|
+
- example/config/environments/development.rb
|
57
|
+
- example/config/environments/production.rb
|
58
|
+
- example/config/environments/test.rb
|
59
|
+
- example/config/initializers/inflections.rb
|
60
|
+
- example/config/initializers/mime_types.rb
|
61
|
+
- example/config/initializers/new_rails_defaults.rb
|
62
|
+
- example/config/locales/en.yml
|
63
|
+
- example/config/routes.rb
|
64
|
+
- example/db/migrate/20090611183940_create_users.rb
|
65
|
+
- example/db/schema.rb
|
66
|
+
- example/doc/README_FOR_APP
|
67
|
+
- example/public/404.html
|
68
|
+
- example/public/422.html
|
69
|
+
- example/public/500.html
|
70
|
+
- example/public/dispatch.cgi
|
71
|
+
- example/public/dispatch.fcgi
|
72
|
+
- example/public/dispatch.rb
|
73
|
+
- example/public/favicon.ico
|
74
|
+
- example/public/images/rails.png
|
75
|
+
- example/public/javascripts/application.js
|
76
|
+
- example/public/javascripts/controls.js
|
77
|
+
- example/public/javascripts/dragdrop.js
|
78
|
+
- example/public/javascripts/effects.js
|
79
|
+
- example/public/javascripts/prototype.js
|
80
|
+
- example/public/robots.txt
|
81
|
+
- example/script/about
|
82
|
+
- example/script/console
|
83
|
+
- example/script/dbconsole
|
84
|
+
- example/script/destroy
|
85
|
+
- example/script/generate
|
86
|
+
- example/script/performance/benchmarker
|
87
|
+
- example/script/performance/profiler
|
88
|
+
- example/script/performance/request
|
89
|
+
- example/script/plugin
|
90
|
+
- example/script/process/inspector
|
91
|
+
- example/script/process/reaper
|
92
|
+
- example/script/process/spawner
|
93
|
+
- example/script/runner
|
94
|
+
- example/script/server
|
95
|
+
- example/test/fixtures/users.yml
|
96
|
+
- example/test/functional/user_controller_test.rb
|
97
|
+
- example/test/functional/workstreamer_controller_test.rb
|
98
|
+
- example/test/performance/browsing_test.rb
|
99
|
+
- example/test/test_helper.rb
|
100
|
+
- example/test/unit/user_test.rb
|
101
|
+
- spec/spec_helper.rb
|
102
|
+
- spec/ws_api_spec.rb
|
103
|
+
has_rdoc: true
|
104
|
+
homepage: http://github.com/wschenk/ws_api
|
105
|
+
post_install_message:
|
106
|
+
rdoc_options:
|
107
|
+
- --charset=UTF-8
|
108
|
+
require_paths:
|
109
|
+
- lib
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: "0"
|
115
|
+
version:
|
116
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: "0"
|
121
|
+
version:
|
122
|
+
requirements: []
|
123
|
+
|
124
|
+
rubyforge_project: ws_api
|
125
|
+
rubygems_version: 1.2.0
|
126
|
+
signing_key:
|
127
|
+
specification_version: 2
|
128
|
+
summary: TODO
|
129
|
+
test_files:
|
130
|
+
- spec/spec_helper.rb
|
131
|
+
- spec/ws_api_spec.rb
|