diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-11-10 18:58:35 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-16 11:58:13 +0000 |
commit | 30c6a7d3acf658253af158ff7069081cf4b109ad (patch) | |
tree | 5c73598837b5d3ed986835bdfe2b2c33330acb8f /spec/features/environments_spec.rb | |
parent | 8cebb71e0a615341b6d3b17214dade0c8c094287 (diff) | |
download | gitlab-ce-30c6a7d3acf658253af158ff7069081cf4b109ad.tar.gz |
Adds tests
Adds tests.
Changes instance into a constructor
Adds tests for environments component
Adds tests assertations
Adds external URL test
Adds tests for Rollback component
Adds tests for stop component
Adds tests for actions component
Fix environment item
Init environment item tests
Diffstat (limited to 'spec/features/environments_spec.rb')
-rw-r--r-- | spec/features/environments_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/features/environments_spec.rb b/spec/features/environments_spec.rb index d60a6be397d..f4c0b093246 100644 --- a/spec/features/environments_spec.rb +++ b/spec/features/environments_spec.rb @@ -43,6 +43,10 @@ feature 'Environments', feature: true, js:true do context 'with environments' do let(:resource) { create_list(:environment, 2) } + before do + endpoint = namespace_project_environments_path(project.namespace, project) + stub_request(:any, endpoint).to_return(body: [{"name": "test"}]) + end scenario 'does show "Available" and "Stopped" tab with links' do expect(page).to have_link('Stopped') |