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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-10 17:55:09 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-10 17:56:21 +0300
commit4e7b47dde1077690cc90b7c8779158af0f175c9a (patch)
treed2c9344c1307def5fb14bc6caf3ba5c98896cebc /spec/features/ci/builds_spec.rb
parente5042137db7c933693c91013018edad347d6e83a (diff)
Convert ci features specs to v3
Diffstat (limited to 'spec/features/ci/builds_spec.rb')
-rw-r--r--spec/features/ci/builds_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/features/ci/builds_spec.rb b/spec/features/ci/builds_spec.rb
index fcd7996efd7..ddfc579d1b8 100644
--- a/spec/features/ci/builds_spec.rb
+++ b/spec/features/ci/builds_spec.rb
@@ -13,9 +13,9 @@ describe "Builds" do
visit project_build_path(@project, @build)
end
- it { page.should have_content @commit.sha[0..7] }
- it { page.should have_content @commit.git_commit_message }
- it { page.should have_content @commit.git_author_name }
+ it { expect(page).to have_content @commit.sha[0..7] }
+ it { expect(page).to have_content @commit.git_commit_message }
+ it { expect(page).to have_content @commit.git_author_name }
end
describe "GET /:project/builds/:id/cancel" do
@@ -25,8 +25,8 @@ describe "Builds" do
visit cancel_project_build_path(@project, @build)
end
- it { page.should have_content 'canceled' }
- it { page.should have_content 'Retry' }
+ it { expect(page).to have_content 'canceled' }
+ it { expect(page).to have_content 'Retry' }
end
describe "POST /:project/builds/:id/retry" do
@@ -37,8 +37,8 @@ describe "Builds" do
click_link 'Retry'
end
- it { page.should have_content 'pending' }
- it { page.should have_content 'Cancel' }
+ it { expect(page).to have_content 'pending' }
+ it { expect(page).to have_content 'Cancel' }
end
describe "Show page public accessible" do
@@ -52,6 +52,6 @@ describe "Builds" do
visit project_build_path(@project, @build)
end
- it { page.should have_content @commit.sha[0..7] }
+ it { expect(page).to have_content @commit.sha[0..7] }
end
end