diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 11:38:34 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 11:38:34 +0200 |
commit | 60e0137c864e26fee0120dc4447bb95acc46ce51 (patch) | |
tree | 98e9bc8f87c048844655bdd587fa782089002215 /spec/features/builds_spec.rb | |
parent | 278a0e1a0fb094dc2eceec0d82d9a56be81c8046 (diff) | |
download | gitlab-ce-60e0137c864e26fee0120dc4447bb95acc46ce51.tar.gz |
Fix specs
Diffstat (limited to 'spec/features/builds_spec.rb')
-rw-r--r-- | spec/features/builds_spec.rb | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/spec/features/builds_spec.rb b/spec/features/builds_spec.rb index 0fd95295388..16832c297ac 100644 --- a/spec/features/builds_spec.rb +++ b/spec/features/builds_spec.rb @@ -107,9 +107,7 @@ describe "Builds" do let(:expire_at) { nil } it 'does not have the Keep button' do - page.within('.artifacts') do - expect(page).not_to have_content 'Keep' - end + expect(page).not_to have_content 'Keep' end end @@ -117,10 +115,8 @@ describe "Builds" do let(:expire_at) { Time.now + 7.days } it 'keeps artifacts when Keep button is clicked' do - page.within('.artifacts') do - expect(page).to have_content 'The artifacts will be removed' - click_link 'Keep' - end + expect(page).to have_content 'The artifacts will be removed' + click_link 'Keep' expect(page).not_to have_link 'Keep' expect(page).not_to have_content 'The artifacts will be removed' @@ -131,10 +127,8 @@ describe "Builds" do let(:expire_at) { Time.now - 7.days } it 'does not have the Keep button' do - page.within('.artifacts') do - expect(page).to have_content 'The artifacts were removed' - expect(page).not_to have_link 'Keep' - end + expect(page).to have_content 'The artifacts were removed' + expect(page).not_to have_link 'Keep' end end end |