summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-13 17:21:08 +0200
committerAzul <azul@leap.se>2014-05-13 22:21:09 +0200
commit3278e474a32ef4926b1dab0d97ca4df1c59aa2a0 (patch)
treeeb75c222343b0dd152c1ee7d7d0016af4e4fbbe8 /test
parentbbe9de73352b5aa937173b4158267f6a37e9ca5f (diff)
adjust tests to new config and method implementation
Ticket.is_creator_vlidated? now actually fetches the user from the db and returns false if it does not exist.
Diffstat (limited to 'test')
-rw-r--r--test/functional/v1/services_controller_test.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/v1/services_controller_test.rb b/test/functional/v1/services_controller_test.rb
index e4058c0..cde7d9f 100644
--- a/test/functional/v1/services_controller_test.rb
+++ b/test/functional/v1/services_controller_test.rb
@@ -21,10 +21,8 @@ class V1::ServicesControllerTest < ActionController::TestCase
test "user can see their service info" do
login
get :show, format: :json
- assert_json_response name: 'free',
- eip_rate_limit: true,
- description: 'free account, with rate limited VPN',
- storage: 100
+ default_level = APP_CONFIG[:default_service_level]
+ assert_json_response APP_CONFIG[:service_levels][default_level]
end
end