Sha256: b0922b2a9d7c3ef5736451eb035e5b6349ac3a16a7528f7f341155810f54c731

Contents?: true

Size: 318 Bytes

Versions: 9

Compression:

Stored size: 318 Bytes

Contents

riml_include 'dsl.riml'

class DictKeyMatcherSpec
  defm describe
    return 'DictKeyMatcher'
  end

  defm it_can_check_for_presence_of_key
    box = {}
    box.red = 'yes'

    expect(box).to_have_key('red')
  end

  defm it_can_check_for_absence_of_key
    box = {}
    expect(box).to_not_have_key('red')
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
speckle-0.1.12 spec/matchers/dict_key_matcher_spec.riml
speckle-0.1.11 spec/matchers/dict_key_matcher_spec.riml
speckle-0.1.10 spec/matchers/dict_key_matcher_spec.riml
speckle-0.1.9 spec/matchers/dict_key_matcher_spec.riml
speckle-0.1.8 spec/matchers/dict_key_matcher_spec.riml
speckle-0.1.7 spec/matchers/dict_key_matcher_spec.riml
speckle-0.1.4 spec/matchers/dict_key_matcher_spec.riml
speckle-0.1.3 spec/matchers/dict_key_matcher_spec.riml
speckle-0.1.2 spec/matchers/dict_key_matcher_spec.riml