debian-mirror-gitlab/spec/lib/gitlab/ci/status/success_spec.rb

34 lines
684 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe Gitlab::Ci::Status::Success do
2017-08-17 22:00:37 +05:30
subject do
described_class.new(double('subject'), double('user'))
end
describe '#text' do
it { expect(subject.text).to eq 'passed' }
end
describe '#label' do
it { expect(subject.label).to eq 'passed' }
end
describe '#icon' do
2018-03-17 18:26:18 +05:30
it { expect(subject.icon).to eq 'status_success' }
2017-08-17 22:00:37 +05:30
end
describe '#favicon' do
it { expect(subject.favicon).to eq 'favicon_status_success' }
end
describe '#group' do
it { expect(subject.group).to eq 'success' }
end
2021-01-03 14:25:43 +05:30
describe '#details_path' do
it { expect(subject.details_path).to be_nil }
end
2017-08-17 22:00:37 +05:30
end