rollout_admin 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/assets/javascripts/rollout_admin/admin.js.erb +7 -4
- data/app/controllers/rollout_admin/admin_controller.rb +11 -4
- data/app/views/rollout_admin/admin/_feature.html.erb +3 -3
- data/lib/rollout_admin/engine.rb +1 -1
- data/lib/rollout_admin/version.rb +1 -1
- data/test/dummy/app/assets/javascripts/users.js +2 -0
- data/test/dummy/app/assets/stylesheets/scaffolds.css.less +62 -0
- data/test/dummy/app/assets/stylesheets/users.css.less +3 -0
- data/test/dummy/app/controllers/users_controller.rb +83 -0
- data/test/dummy/app/helpers/users_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +8 -0
- data/test/dummy/app/views/users/_form.html.erb +25 -0
- data/test/dummy/app/views/users/edit.html.erb +6 -0
- data/test/dummy/app/views/users/index.html.erb +25 -0
- data/test/dummy/app/views/users/new.html.erb +5 -0
- data/test/dummy/app/views/users/show.html.erb +15 -0
- data/test/dummy/config/initializers/rollout.rb +4 -1
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130219061246_create_users.rb +10 -0
- data/test/dummy/db/schema.rb +23 -0
- data/test/dummy/log/development.log +7232 -0
- data/test/dummy/test/fixtures/users.yml +9 -0
- data/test/dummy/test/functional/users_controller_test.rb +49 -0
- data/test/dummy/test/unit/helpers/users_helper_test.rb +4 -0
- data/test/dummy/test/unit/user_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/CD3/980/sprockets%2F03077d801d9c005f9a10f463f646c0fa +0 -0
- data/test/dummy/tmp/cache/assets/CD5/C00/sprockets%2F72b822081ea29032c5b7e7586bb5a22e +0 -0
- data/test/dummy/tmp/cache/assets/D42/130/sprockets%2F0ce4f38cdd901f2fb060876f217492df +0 -0
- data/test/dummy/tmp/cache/assets/D43/A00/sprockets%2F0af849366f9470e63fc22ec28ecc9a00 +0 -0
- data/test/dummy/tmp/cache/assets/D6C/0C0/sprockets%2F1ac2e63a2b7fd76b515eb5d95b2856a5 +0 -0
- data/test/dummy/tmp/cache/assets/D71/C20/sprockets%2Fc7303b23dce837fa7b76f4125fc4e46e +0 -0
- data/test/dummy/tmp/cache/assets/D74/A80/sprockets%2F18ba650d0ac50053fe8cf97f9db98f31 +0 -0
- data/test/dummy/tmp/cache/assets/D9A/F70/sprockets%2F9b3298a5ca38cbfb3fb9a062ee36b180 +0 -0
- data/test/dummy/tmp/cache/assets/DBD/330/sprockets%2F51a9cf8afaaa9b816cb8a70ac7512a21 +0 -0
- data/test/dummy/tmp/cache/assets/DC1/AB0/sprockets%2F2e20ea6c418db23cb9c2cf1782a95cad +0 -0
- data/test/dummy/tmp/cache/assets/DDD/E70/sprockets%2F0b0e2c06badeabd4ea9b52178b44a00e +0 -0
- data/test/dummy/tmp/cache/assets/E33/010/sprockets%2Ffd7db48da51f060c6bdd80dfbd992d8b +0 -0
- metadata +36 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
require 'test_helper'
|
|
2
|
+
|
|
3
|
+
class UsersControllerTest < ActionController::TestCase
|
|
4
|
+
setup do
|
|
5
|
+
@user = users(:one)
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
test "should get index" do
|
|
9
|
+
get :index
|
|
10
|
+
assert_response :success
|
|
11
|
+
assert_not_nil assigns(:users)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
test "should get new" do
|
|
15
|
+
get :new
|
|
16
|
+
assert_response :success
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
test "should create user" do
|
|
20
|
+
assert_difference('User.count') do
|
|
21
|
+
post :create, user: { email: @user.email, name: @user.name }
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
assert_redirected_to user_path(assigns(:user))
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
test "should show user" do
|
|
28
|
+
get :show, id: @user
|
|
29
|
+
assert_response :success
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
test "should get edit" do
|
|
33
|
+
get :edit, id: @user
|
|
34
|
+
assert_response :success
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
test "should update user" do
|
|
38
|
+
put :update, id: @user, user: { email: @user.email, name: @user.name }
|
|
39
|
+
assert_redirected_to user_path(assigns(:user))
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
test "should destroy user" do
|
|
43
|
+
assert_difference('User.count', -1) do
|
|
44
|
+
delete :destroy, id: @user
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
assert_redirected_to users_path
|
|
48
|
+
end
|
|
49
|
+
end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rollout_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-02-
|
|
12
|
+
date: 2013-02-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -157,10 +157,21 @@ files:
|
|
|
157
157
|
- Rakefile
|
|
158
158
|
- README.md
|
|
159
159
|
- test/dummy/app/assets/javascripts/application.js
|
|
160
|
+
- test/dummy/app/assets/javascripts/users.js
|
|
160
161
|
- test/dummy/app/assets/stylesheets/application.css
|
|
162
|
+
- test/dummy/app/assets/stylesheets/scaffolds.css.less
|
|
163
|
+
- test/dummy/app/assets/stylesheets/users.css.less
|
|
161
164
|
- test/dummy/app/controllers/application_controller.rb
|
|
165
|
+
- test/dummy/app/controllers/users_controller.rb
|
|
162
166
|
- test/dummy/app/helpers/application_helper.rb
|
|
167
|
+
- test/dummy/app/helpers/users_helper.rb
|
|
168
|
+
- test/dummy/app/models/user.rb
|
|
163
169
|
- test/dummy/app/views/layouts/application.html.erb
|
|
170
|
+
- test/dummy/app/views/users/_form.html.erb
|
|
171
|
+
- test/dummy/app/views/users/edit.html.erb
|
|
172
|
+
- test/dummy/app/views/users/index.html.erb
|
|
173
|
+
- test/dummy/app/views/users/new.html.erb
|
|
174
|
+
- test/dummy/app/views/users/show.html.erb
|
|
164
175
|
- test/dummy/config/application.rb
|
|
165
176
|
- test/dummy/config/boot.rb
|
|
166
177
|
- test/dummy/config/database.yml
|
|
@@ -179,6 +190,8 @@ files:
|
|
|
179
190
|
- test/dummy/config/routes.rb
|
|
180
191
|
- test/dummy/config.ru
|
|
181
192
|
- test/dummy/db/development.sqlite3
|
|
193
|
+
- test/dummy/db/migrate/20130219061246_create_users.rb
|
|
194
|
+
- test/dummy/db/schema.rb
|
|
182
195
|
- test/dummy/db/test.sqlite3
|
|
183
196
|
- test/dummy/log/development.log
|
|
184
197
|
- test/dummy/log/test.log
|
|
@@ -189,6 +202,10 @@ files:
|
|
|
189
202
|
- test/dummy/Rakefile
|
|
190
203
|
- test/dummy/README.rdoc
|
|
191
204
|
- test/dummy/script/rails
|
|
205
|
+
- test/dummy/test/fixtures/users.yml
|
|
206
|
+
- test/dummy/test/functional/users_controller_test.rb
|
|
207
|
+
- test/dummy/test/unit/helpers/users_helper_test.rb
|
|
208
|
+
- test/dummy/test/unit/user_test.rb
|
|
192
209
|
- test/dummy/tmp/cache/assets/C20/C40/sprockets%2F261100664832a5fd690af826f0851667
|
|
193
210
|
- test/dummy/tmp/cache/assets/C55/400/sprockets%2F9922ee592c403b460458680f1da79017
|
|
194
211
|
- test/dummy/tmp/cache/assets/C6D/6B0/sprockets%2F429143f762968712de61fb6c8629669e
|
|
@@ -323,10 +340,21 @@ specification_version: 3
|
|
|
323
340
|
summary: Manage rollout features from web interface.
|
|
324
341
|
test_files:
|
|
325
342
|
- test/dummy/app/assets/javascripts/application.js
|
|
343
|
+
- test/dummy/app/assets/javascripts/users.js
|
|
326
344
|
- test/dummy/app/assets/stylesheets/application.css
|
|
345
|
+
- test/dummy/app/assets/stylesheets/scaffolds.css.less
|
|
346
|
+
- test/dummy/app/assets/stylesheets/users.css.less
|
|
327
347
|
- test/dummy/app/controllers/application_controller.rb
|
|
348
|
+
- test/dummy/app/controllers/users_controller.rb
|
|
328
349
|
- test/dummy/app/helpers/application_helper.rb
|
|
350
|
+
- test/dummy/app/helpers/users_helper.rb
|
|
351
|
+
- test/dummy/app/models/user.rb
|
|
329
352
|
- test/dummy/app/views/layouts/application.html.erb
|
|
353
|
+
- test/dummy/app/views/users/_form.html.erb
|
|
354
|
+
- test/dummy/app/views/users/edit.html.erb
|
|
355
|
+
- test/dummy/app/views/users/index.html.erb
|
|
356
|
+
- test/dummy/app/views/users/new.html.erb
|
|
357
|
+
- test/dummy/app/views/users/show.html.erb
|
|
330
358
|
- test/dummy/config/application.rb
|
|
331
359
|
- test/dummy/config/boot.rb
|
|
332
360
|
- test/dummy/config/database.yml
|
|
@@ -345,6 +373,8 @@ test_files:
|
|
|
345
373
|
- test/dummy/config/routes.rb
|
|
346
374
|
- test/dummy/config.ru
|
|
347
375
|
- test/dummy/db/development.sqlite3
|
|
376
|
+
- test/dummy/db/migrate/20130219061246_create_users.rb
|
|
377
|
+
- test/dummy/db/schema.rb
|
|
348
378
|
- test/dummy/db/test.sqlite3
|
|
349
379
|
- test/dummy/log/development.log
|
|
350
380
|
- test/dummy/log/test.log
|
|
@@ -355,6 +385,10 @@ test_files:
|
|
|
355
385
|
- test/dummy/Rakefile
|
|
356
386
|
- test/dummy/README.rdoc
|
|
357
387
|
- test/dummy/script/rails
|
|
388
|
+
- test/dummy/test/fixtures/users.yml
|
|
389
|
+
- test/dummy/test/functional/users_controller_test.rb
|
|
390
|
+
- test/dummy/test/unit/helpers/users_helper_test.rb
|
|
391
|
+
- test/dummy/test/unit/user_test.rb
|
|
358
392
|
- test/dummy/tmp/cache/assets/C20/C40/sprockets%2F261100664832a5fd690af826f0851667
|
|
359
393
|
- test/dummy/tmp/cache/assets/C55/400/sprockets%2F9922ee592c403b460458680f1da79017
|
|
360
394
|
- test/dummy/tmp/cache/assets/C6D/6B0/sprockets%2F429143f762968712de61fb6c8629669e
|