File: be_about_now.rb

package info (click to toggle)
ruby-factory-bot 6.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,492 kB
  • sloc: ruby: 9,242; makefile: 6; sh: 4
file content (5 lines) | stat: -rw-r--r-- 126 bytes parent folder | download | duplicates (4)
1
2
3
4
5
RSpec::Matchers.define :be_about_now do
  match do |actual|
    expect(actual).to be_within(2.seconds).of(Time.now)
  end
end