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.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/functional/v1/identities_controller_test.rb b/test/functional/v1/identities_controller_test.rb
deleted file mode 100644
index 6410c44..0000000
--- a/test/functional/v1/identities_controller_test.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-require_relative '../../test_helper'
-
-class V1::IdentitiesControllerTest < ActionController::TestCase
-
- test "api monitor can fetch identity" do
- monitor_auth do
- identity = FactoryGirl.create :identity
- 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'
- assert_response :forbidden
- end
-
-end