Commit ecb1bf679171cf8ff76a0bd56798d56c5f9eac27
Committed by
Leandro Santos
1 parent
ee22db70
Exists in
staging
and in
31 other branches
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,6 +23,13 @@ class EnvironmentTest < ActiveSupport::TestCase | ||
23 | assert_nil json['settings'] | 23 | assert_nil json['settings'] |
24 | end | 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 | should 'return created environment' do | 33 | should 'return created environment' do |
27 | environment = fast_create(Environment) | 34 | environment = fast_create(Environment) |
28 | default_env = Environment.default | 35 | default_env = Environment.default |