diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-10-23 15:57:06 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-10-23 17:00:42 +0300 |
commit | a92693df7742214a44caa521f9be7ab52f99d6b6 (patch) | |
tree | 859a970ec67d55078a3a53af225aadf08f026363 /spec/features/projects/environments | |
parent | b612bcfc64618906b5b11a245fb0aa2452d6c5dd (diff) |
add InspectRequests helper
Diffstat (limited to 'spec/features/projects/environments')
-rw-r--r-- | spec/features/projects/environments/environment_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/features/projects/environments/environment_spec.rb b/spec/features/projects/environments/environment_spec.rb index c9f12e877b3..e0fc60e45ae 100644 --- a/spec/features/projects/environments/environment_spec.rb +++ b/spec/features/projects/environments/environment_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' feature 'Environment' do + include InspectRequests + given(:project) { create(:project) } given(:user) { create(:user) } given(:role) { :developer } @@ -193,11 +195,14 @@ feature 'Environment' do create(:environment, project: project, name: 'staging-1.0/review', state: :available) - - visit folder_project_environments_path(project, id: 'staging-1.0') end it 'renders a correct environment folder' do + reqs = inspect_requests do + visit folder_project_environments_path(project, id: 'staging-1.0') + end + + expect(reqs.first.status_code).to eq(200) expect(page).to have_content('Environments / staging-1.0') end end |