Sha256: 01ed9fedb10addcead7e9b815bd11ed1c8299cfd711410e1144bf5ff0fc8ee22

Contents?: true

Size: 357 Bytes

Versions: 29

Compression:

Stored size: 357 Bytes

Contents

riml_include 'dsl.riml'

class LengthMatcherSpec
  defm describe
    return 'LengthMatcher'
  end

  defm it_can_check_for_length_of_string
    expect("foo").to_have_length(3)
    expect("foo").to_not_have_length(4)
  end

  defm it_can_check_for_length_of_list
    expect([1, 2, 3]).to_have_length(3)
    expect([1, 2, 3]).to_not_have_length(4)
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

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