diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-15 15:51:41 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-18 09:54:52 -0400 |
commit | 6b124d42d9861a5f8c3dd5add7cabc864fa3673c (patch) | |
tree | 12361ba8b27fc9e0ed2a9a9862980fdc05bd9e8d /spec/features | |
parent | 5ae4fd2181e81f6e75a9d4021fc7d0c4749139ef (diff) | |
download | gitlab-ce-6b124d42d9861a5f8c3dd5add7cabc864fa3673c.tar.gz |
Add configurable shared runners text
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/runners_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/runners_spec.rb b/spec/features/runners_spec.rb index e8886e7edf9..1fe7645250c 100644 --- a/spec/features/runners_spec.rb +++ b/spec/features/runners_spec.rb @@ -80,6 +80,22 @@ describe "Runners" do end end + describe "shared runners description" do + let(:shared_runners_text) { 'custom shared runners description' } + + before { stub_application_setting(shared_runners_text: shared_runners_text) } + + before do + @project = FactoryGirl.create :empty_project, shared_runners_enabled: false + @project.team << [user, :master] + visit runners_path(@project) + end + + it "sees shared runners description" do + expect(page.find(".shared-runners-description")).to have_content(shared_runners_text) + end + end + describe "show page" do before do @project = FactoryGirl.create :empty_project |