quick_dry 0.0.1.1 → 0.1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/quick_dry/quick_dry_controller.rb +65 -19
- data/config/routes.rb +8 -8
- data/lib/quick_dry/version.rb +1 -1
- metadata +3 -149
- data/test/dummy/app/assets/javascripts/comments.js +0 -2
- data/test/dummy/app/assets/javascripts/posts.js +0 -2
- data/test/dummy/app/assets/stylesheets/comments.css +0 -4
- data/test/dummy/app/assets/stylesheets/posts.css +0 -4
- data/test/dummy/app/assets/stylesheets/scaffold.css +0 -56
- data/test/dummy/app/controllers/comments_controller.rb +0 -58
- data/test/dummy/app/controllers/posts_controller.rb +0 -58
- data/test/dummy/app/helpers/comments_helper.rb +0 -2
- data/test/dummy/app/helpers/posts_helper.rb +0 -2
- data/test/dummy/app/models/comment.rb +0 -2
- data/test/dummy/app/models/post.rb +0 -2
- data/test/dummy/app/views/comments/_form.html.erb +0 -25
- data/test/dummy/app/views/comments/edit.html.erb +0 -6
- data/test/dummy/app/views/comments/index.html.erb +0 -27
- data/test/dummy/app/views/comments/new.html.erb +0 -5
- data/test/dummy/app/views/comments/show.html.erb +0 -14
- data/test/dummy/app/views/posts/_form.html.erb +0 -25
- data/test/dummy/app/views/posts/edit.html.erb +0 -6
- data/test/dummy/app/views/posts/index.html.erb +0 -27
- data/test/dummy/app/views/posts/new.html.erb +0 -5
- data/test/dummy/app/views/posts/show.html.erb +0 -14
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20141014142634_create_comments.rb +0 -10
- data/test/dummy/db/migrate/20141014142659_create_posts.rb +0 -10
- data/test/dummy/db/schema.rb +0 -30
- data/test/dummy/log/development.log +0 -15567
- data/test/dummy/test/controllers/comments_controller_test.rb +0 -49
- data/test/dummy/test/controllers/posts_controller_test.rb +0 -49
- data/test/dummy/test/fixtures/comments.yml +0 -9
- data/test/dummy/test/fixtures/posts.yml +0 -9
- data/test/dummy/test/helpers/comments_helper_test.rb +0 -4
- data/test/dummy/test/helpers/posts_helper_test.rb +0 -4
- data/test/dummy/test/models/comment_test.rb +0 -7
- data/test/dummy/test/models/post_test.rb +0 -7
- data/test/dummy/tmp/cache/assets/development/sprockets/0dd5163be147a1ee2f93f5abb9a0fd32 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1e8f75a6b5b33970fb8e397347caa0a1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/206236caf137ae7dd3cae0aac897f4b2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/24204f742af588c8166d3160b500d20f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/37c31816befce62c4f5d52026a23287d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/412ab75ab0fc70ac2d7f96418d4c1d43 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/416150dc3ac35079c94273cc46e90aa6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5384ad85f52d3272dbc64d46ef3876a4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5eccfa2606a027a0b509bdb46f03d701 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/73510521b58326509331d135128ad92e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8244190c3c743ce907b74854faabcb0b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8288ddc9a4e9f4196c50036ee1eda4b8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/886a4f506bfbabff5d6b407aedbb80d0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/952d783e1981cc269524cb5a2890409d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9c7264225a395d67bc2a2d9181a19571 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aa844f54ad5b802f23b19beb26e81435 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ae2c9e8cd2d7afe29ae08c4e049fb57a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b3ee3550542b56da2fa6ed034609648c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b86ae80f0c5c9fda3e212df5e11179c7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b9de2fc513b54720f71ab4d2a2df3004 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c40e7666f601d5bab36418512d6b76ee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c5cb5b72ad5b8996bce2c68b02dff3a5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c85016e7bbd4f3adbb7635d01f85d39b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cba44a33ec96893200b56f4695586826 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d066c004d1fd26ae76a61303a7a18145 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1ca254e5fdbd2901067c0a9d95e6dd5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e584db490f8a31d32e707b821c61fa75 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e912bd2d77f53416b8fa30878918d082 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f13f0412b3245894f220e57919843e97 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f3dabd6fc74da6af45a775c1ddb019f7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class CommentsControllerTest < ActionController::TestCase
|
4
|
-
setup do
|
5
|
-
@comment = comments(:one)
|
6
|
-
end
|
7
|
-
|
8
|
-
test "should get index" do
|
9
|
-
get :index
|
10
|
-
assert_response :success
|
11
|
-
assert_not_nil assigns(:comments)
|
12
|
-
end
|
13
|
-
|
14
|
-
test "should get new" do
|
15
|
-
get :new
|
16
|
-
assert_response :success
|
17
|
-
end
|
18
|
-
|
19
|
-
test "should create comment" do
|
20
|
-
assert_difference('Comment.count') do
|
21
|
-
post :create, comment: { User: @comment.User, body: @comment.body }
|
22
|
-
end
|
23
|
-
|
24
|
-
assert_redirected_to comment_path(assigns(:comment))
|
25
|
-
end
|
26
|
-
|
27
|
-
test "should show comment" do
|
28
|
-
get :show, id: @comment
|
29
|
-
assert_response :success
|
30
|
-
end
|
31
|
-
|
32
|
-
test "should get edit" do
|
33
|
-
get :edit, id: @comment
|
34
|
-
assert_response :success
|
35
|
-
end
|
36
|
-
|
37
|
-
test "should update comment" do
|
38
|
-
patch :update, id: @comment, comment: { User: @comment.User, body: @comment.body }
|
39
|
-
assert_redirected_to comment_path(assigns(:comment))
|
40
|
-
end
|
41
|
-
|
42
|
-
test "should destroy comment" do
|
43
|
-
assert_difference('Comment.count', -1) do
|
44
|
-
delete :destroy, id: @comment
|
45
|
-
end
|
46
|
-
|
47
|
-
assert_redirected_to comments_path
|
48
|
-
end
|
49
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class PostsControllerTest < ActionController::TestCase
|
4
|
-
setup do
|
5
|
-
@post = posts(:one)
|
6
|
-
end
|
7
|
-
|
8
|
-
test "should get index" do
|
9
|
-
get :index
|
10
|
-
assert_response :success
|
11
|
-
assert_not_nil assigns(:posts)
|
12
|
-
end
|
13
|
-
|
14
|
-
test "should get new" do
|
15
|
-
get :new
|
16
|
-
assert_response :success
|
17
|
-
end
|
18
|
-
|
19
|
-
test "should create post" do
|
20
|
-
assert_difference('Post.count') do
|
21
|
-
post :create, post: { content: @post.content, name: @post.name }
|
22
|
-
end
|
23
|
-
|
24
|
-
assert_redirected_to post_path(assigns(:post))
|
25
|
-
end
|
26
|
-
|
27
|
-
test "should show post" do
|
28
|
-
get :show, id: @post
|
29
|
-
assert_response :success
|
30
|
-
end
|
31
|
-
|
32
|
-
test "should get edit" do
|
33
|
-
get :edit, id: @post
|
34
|
-
assert_response :success
|
35
|
-
end
|
36
|
-
|
37
|
-
test "should update post" do
|
38
|
-
patch :update, id: @post, post: { content: @post.content, name: @post.name }
|
39
|
-
assert_redirected_to post_path(assigns(:post))
|
40
|
-
end
|
41
|
-
|
42
|
-
test "should destroy post" do
|
43
|
-
assert_difference('Post.count', -1) do
|
44
|
-
delete :destroy, id: @post
|
45
|
-
end
|
46
|
-
|
47
|
-
assert_redirected_to posts_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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|