diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-15 15:09:20 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-15 15:09:20 +0300 |
commit | b7bb56c7a3504e259887909a2e8515c5896a173e (patch) | |
tree | 3b742e6b4a431e1614c5aa15c597fff129650406 /features/steps | |
parent | f66f9e95bf1e67ad13de9958d16103b858b58e72 (diff) |
Expand builds namespace for feature tests in spinach
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/project/builds/artifacts.rb (renamed from features/steps/project/builds.rb) | 10 | ||||
-rw-r--r-- | features/steps/project/builds/summary.rb | 14 |
2 files changed, 15 insertions, 9 deletions
diff --git a/features/steps/project/builds.rb b/features/steps/project/builds/artifacts.rb index 28395281077..f4f91ad1d8c 100644 --- a/features/steps/project/builds.rb +++ b/features/steps/project/builds/artifacts.rb @@ -1,17 +1,9 @@ -class Spinach::Features::ProjectBuilds < Spinach::FeatureSteps +class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps include SharedAuthentication include SharedProject include SharedBuilds include RepoHelpers - step 'I see summary for build' do - expect(page).to have_content "Build ##{@build.id}" - end - - step 'I see build trace' do - expect(page).to have_css '#build-trace' - end - step 'I click artifacts download button' do page.within('.artifacts') { click_link 'Download' } end diff --git a/features/steps/project/builds/summary.rb b/features/steps/project/builds/summary.rb new file mode 100644 index 00000000000..2439d48fbef --- /dev/null +++ b/features/steps/project/builds/summary.rb @@ -0,0 +1,14 @@ +class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps + include SharedAuthentication + include SharedProject + include SharedBuilds + include RepoHelpers + + step 'I see summary for build' do + expect(page).to have_content "Build ##{@build.id}" + end + + step 'I see build trace' do + expect(page).to have_css '#build-trace' + end +end |