Sha256: 0bfd962afb8bd669bbc20814791210b292df358c0d2c345f1ed5e825710cec29

Contents?: true

Size: 240 Bytes

Versions: 6

Compression:

Stored size: 240 Bytes

Contents

Use the `eq` matcher to test the equality of two values: `its('Port') { should eq '22' }`.

Using `its('Port') { should eq 22 }` will fail because `22` is not a string value! Use the `cmp` matcher for less restrictive value comparisons.

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inspec-2.1.81 docs/shared/matcher_eq.md.erb
inspec-2.1.21 docs/shared/matcher_eq.md.erb
inspec-2.1.10 docs/shared/matcher_eq.md.erb
inspec-2.0.32 docs/shared/matcher_eq.md.erb
inspec-2.0.17 docs/shared/matcher_eq.md.erb
inspec-1.51.15 docs/shared/matcher_eq.md.erb