Add another test to make sure url would be passed

This commit is contained in:
Lin Jen-Shin 2017-05-25 22:29:30 +08:00
parent b74b7309a5
commit 86cd09f5d1
1 changed files with 2 additions and 0 deletions

View File

@ -853,6 +853,7 @@ module Ci
it 'does return production and URL' do
expect(builds.size).to eq(1)
expect(builds.first[:environment]).to eq(environment[:name])
expect(builds.first[:environment_url]).to eq(environment[:url])
expect(builds.first[:options]).to include(environment: environment)
end
@ -865,6 +866,7 @@ module Ci
it 'allows a variable for the port' do
expect(builds.size).to eq(1)
expect(builds.first[:environment]).to eq(environment[:name])
expect(builds.first[:environment_url]).to eq(environment[:url])
expect(builds.first[:options]).to include(environment: environment)
end
end