inspec/docs/shared/matcher_eq.md.erb

4 lines
237 B
Text
Raw Normal View History

2016-09-22 12:43:57 +00:00
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.