summaryrefslogtreecommitdiff
path: root/test/functional/v1/identities_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/v1/identities_controller_test.rb')
-rw-r--r--test/functional/v1/identities_controller_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/v1/identities_controller_test.rb b/test/functional/v1/identities_controller_test.rb
index 3e88402..6410c44 100644
--- a/test/functional/v1/identities_controller_test.rb
+++ b/test/functional/v1/identities_controller_test.rb
@@ -8,9 +8,13 @@ class V1::IdentitiesControllerTest < ActionController::TestCase
get :show, :id => identity.address, :format => 'json'
assert_response :success
assert_equal identity, assigns(:identity)
+
+ get :show, :id => "blahblahblah", :format => 'json'
+ assert_response :not_found
end
end
+
test "anonymous cannot fetch identity" do
identity = FactoryGirl.create :identity
get :show, :id => identity.address, :format => 'json'