Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check for response body too

  • Loading branch information...
commit b87a47bf83b2ffa04de60271013a575600102f8a 1 parent d677b21
@lifo authored
View
1  app/controllers/posts_controller.rb
@@ -1,5 +1,4 @@
class PostsController < ApplicationController
def index
- head :ok
end
end
View
14 app/views/layouts/application.html.erb
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>JourneyDemo</title>
- <%= stylesheet_link_tag "application", :media => "all" %>
- <%= javascript_include_tag "application" %>
- <%= csrf_meta_tags %>
-</head>
-<body>
-
-<%= yield %>
-
-</body>
-</html>
View
1  app/views/posts/index.html.erb
@@ -0,0 +1 @@
+Hello World
View
2  test/functional/posts_controller_test.rb
@@ -4,6 +4,8 @@ class PostsControllerTest < ActionController::TestCase
test "should get index" do
get :index
assert_response :success
+
+ assert_equal "Hello World", response.body
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.