Sha256: b8cc2bc972bd18d3af123949380395870ade32f1480578375ff6aa95878a8ac2

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

require 'rails_helper'

module RocketJobMissionControl
  RSpec.describe WorkersHelper, type: :helper do
    describe '#worker_card_class' do
      context 'when the worker is a zombie' do
        let(:worker) { spy(zombie?: true) }

        it 'returns the correct class' do
          expect(helper.worker_card_class(worker)).to eq('callout-zombie')
        end
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rocketjob_mission_control-2.1.1 spec/helpers/workers_helper_spec.rb
rocketjob_mission_control-2.1.0 spec/helpers/workers_helper_spec.rb
rocketjob_mission_control-2.0.0 spec/helpers/workers_helper_spec.rb
rocketjob_mission_control-2.0.0.rc2 spec/helpers/workers_helper_spec.rb
rocketjob_mission_control-2.0.0.rc1 spec/helpers/workers_helper_spec.rb