Sha256: 4522a8baf054ffde864684e828b07a44182304fb396aee19d525e4c21bbc6d5f

Contents?: true

Size: 395 Bytes

Versions: 4

Compression:

Stored size: 395 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-top')
        end
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rocketjob_mission_control-1.2.4 spec/helpers/workers_helper_spec.rb
rocketjob_mission_control-1.2.3 spec/helpers/workers_helper_spec.rb
rocketjob_mission_control-1.2.2 spec/helpers/workers_helper_spec.rb
rocketjob_mission_control-1.2.1 spec/helpers/workers_helper_spec.rb