Commit ecb1bf679171cf8ff76a0bd56798d56c5f9eac27

Authored by Carlos Purificação
Committed by Leandro Santos
1 parent ee22db70

Added description to environment api test

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
test/api/environment_test.rb
... ... @@ -23,6 +23,13 @@ class EnvironmentTest < ActiveSupport::TestCase
23 23 assert_nil json['settings']
24 24 end
25 25  
  26 + should 'return the default environment description' do
  27 + environment = Environment.default
  28 + get "/api/v1/environment/default"
  29 + json = JSON.parse(last_response.body)
  30 + assert_equal environment.description, json['description']
  31 + end
  32 +
26 33 should 'return created environment' do
27 34 environment = fast_create(Environment)
28 35 default_env = Environment.default
... ...