Sha256: 82775726e6012eda6dc73f236ba89cccb18e8239332f203bc3a7a5a81087d40d
Contents?: true
Size: 314 Bytes
Versions: 3
Compression:
Stored size: 314 Bytes
Contents
RSpec::Matchers.define(:take_less_than) do |n| match do |block| @why_so_long = PerfSpec::WhySoLong.new(n) @why_so_long.check(&block) @why_so_long.success? end def supports_block_expectations? true end failure_message do |actual| @why_so_long.failure_message(actual, self) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
perf_spec-1.0.0 | lib/rspec/matchers/take_less_than.rb |
perf_spec-0.1.1 | lib/rspec/matchers/take_less_than.rb |
perf_spec-0.1.0 | lib/rspec/matchers/take_less_than.rb |