Sha256: 6acb6fec21947054fc1a3509c9bc1e086ed3f0f527cb5ac62bb605d6436d585e

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

shared_examples_for 'a status checker' do

  it 'inherits from StatusCat::Checker' do
    expect( checker ).to be_a_kind_of( StatusCat::Checkers::Base )
  end

  describe 'attributes' do

    it 'has a name reader' do
      expected = checker.class.to_s.split( '::' ).last.underscore.to_sym
      expect( checker.name ).to eql( expected )
    end

    it 'has a value reader' do
      expect( checker.value ).to eql( checker.value )
    end

    it 'has a status reader' do
      expect( checker.status ).to eql( checker.status )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
status_cat-0.1.1 spec/support/shared/checker.rb