From ecb1bf679171cf8ff76a0bd56798d56c5f9eac27 Mon Sep 17 00:00:00 2001 From: Carlos Purificacao Date: Mon, 11 Apr 2016 16:33:33 -0300 Subject: [PATCH] Added description to environment api test --- test/api/environment_test.rb | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/test/api/environment_test.rb b/test/api/environment_test.rb index 4856925..58b91b5 100644 --- a/test/api/environment_test.rb +++ b/test/api/environment_test.rb @@ -23,6 +23,13 @@ class EnvironmentTest < ActiveSupport::TestCase assert_nil json['settings'] end + should 'return the default environment description' do + environment = Environment.default + get "/api/v1/environment/default" + json = JSON.parse(last_response.body) + assert_equal environment.description, json['description'] + end + should 'return created environment' do environment = fast_create(Environment) default_env = Environment.default -- libgit2 0.21.2