Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-14 12:38:34 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-14 12:38:34 +0300
commit60e0137c864e26fee0120dc4447bb95acc46ce51 (patch)
tree98e9bc8f87c048844655bdd587fa782089002215 /spec/features
parent278a0e1a0fb094dc2eceec0d82d9a56be81c8046 (diff)
Fix specs
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/builds_spec.rb16
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