Sha256: 185ed4befa0f6b3f308904bf93d1698bfbaa04915006a0c62c9f8e86cab1b80a

Contents?: true

Size: 329 Bytes

Versions: 8

Compression:

Stored size: 329 Bytes

Contents

require 'spec_helper'

RSpec.describe Shoryuken do
  describe '.healthy?' do
    before do
      allow(Shoryuken::Runner).to receive(:instance).and_return(double(:instance, healthy?: :some_result))
    end

    it 'delegates to the runner instance' do
      expect(described_class.healthy?).to eq(:some_result)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shoryuken-6.2.1 spec/shoryuken_spec.rb
shoryuken-6.2.0 spec/shoryuken_spec.rb
shoryuken-6.1.1 spec/shoryuken_spec.rb
shoryuken-6.1.0 spec/shoryuken_spec.rb
shoryuken-6.0.0 spec/shoryuken_spec.rb
shoryuken-5.3.2 spec/shoryuken_spec.rb
shoryuken-5.3.1 spec/shoryuken_spec.rb
shoryuken-5.3.0 spec/shoryuken_spec.rb