inspec/lib
Ryan Davis bc249a78cb Changed cmp matcher to use send.
obj.method(name).call(*args) == obj.send(name, *args)

```
Calculating -------------------------------------
         method+call      2.561M (± 2.2%) i/s -     12.816M in   5.006835s
                send      6.299M (± 2.4%) i/s -     31.501M in   5.004045s

Comparison:
                send:  6299002.5 i/s
         method+call:  2560909.2 i/s - 2.46x  slower
```

There aren't any direct tests for this? But I forcefully failed 2
functionals and then verified they passed after my change.

Not sure how (or if) to write tests against rspec matchers in a
meaningful way, even tho all I really want to test is a plain ole
method in it. I'll poke to see if it is possible / practical.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-17 02:26:06 -07:00
..
bundles Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
fetchers Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
inspec Fixes loading of Telemetry::DataSeries (and neighbors) in isolation. 2019-05-17 02:26:06 -07:00
matchers Changed cmp matcher to use send. 2019-05-17 02:26:06 -07:00
plugins Updates the init plugin desc to show proper usage 2019-05-16 16:43:05 -05:00
resource_support Linting 2019-04-08 14:28:57 -04:00
resources Relocate resources to inspec/resources 2019-05-08 13:09:54 -07:00
source_readers Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
utils Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
inspec.rb Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00