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

runners_helper_spec.rb « helpers « ci « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 02d497b40d28ec55968e8034576094422c6af1dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'

describe RunnersHelper do
  it "returns - not contacted yet" do
    runner = FactoryGirl.build :runner
    runner_status_icon(runner).should include("not connected yet")
  end

  it "returns offline text" do
    runner = FactoryGirl.build(:runner, contacted_at: 1.day.ago, active: true)
    runner_status_icon(runner).should include("Runner is offline")
  end

  it "returns online text" do
    runner = FactoryGirl.build(:runner, contacted_at: 1.hour.ago, active: true)
    runner_status_icon(runner).should include("Runner is online")
  end
end