summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-14 17:26:28 +0200
committerAzul <azul@leap.se>2014-07-17 12:47:47 +0200
commit150c80bfc7c469b23f7ac1bac0e42014ad417df6 (patch)
tree8fa65f4601e82a86b07d48ba9727945bcb4b9ff3 /test/functional
parentb17387a17669bfc9afce7435653cd8c29c686999 (diff)
add translation and fix tests
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/v1/messages_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/v1/messages_controller_test.rb b/test/functional/v1/messages_controller_test.rb
index a50fded..6f7ea5d 100644
--- a/test/functional/v1/messages_controller_test.rb
+++ b/test/functional/v1/messages_controller_test.rb
@@ -30,7 +30,7 @@ class V1::MessagesControllerTest < ActionController::TestCase
@message.reload
assert !@message.user_ids_to_show.include?(@user.id)
assert @message.user_ids_have_shown.include?(@user.id)
- assert_json_response true
+ assert_success :marked_as_read
end
test "do not get seen messages" do
@@ -46,7 +46,7 @@ class V1::MessagesControllerTest < ActionController::TestCase
test "mark read responds even with bad inputs" do
login @user
put :update, :id => 'more nonsense'
- assert_json_response false
+ assert_not_found
end
test "fails if not authenticated" do