Sha256: 2c22542a066a4a932928968b9f8fab7f08200fca7015477e79775cc8cc075098

Contents?: true

Size: 527 Bytes

Versions: 3

Compression:

Stored size: 527 Bytes

Contents

shared_examples_for 'a status checker' do

  it 'inherits from StatusCat::Checker' do
    checker.should 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
      checker.name.should eql( expected )
    end

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

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

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
status_cat-0.1.0 spec/support/shared/checker.rb
status_cat-0.0.9 spec/support/shared/checker.rb
status_cat-0.0.8 spec/support/shared/checker.rb