mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
fix: issues affecting code quality (#1420)
* use `delegate` for delegation * Time should be used with zone
This commit is contained in:
parent
12dc7cb85c
commit
293a815fbe
2 changed files with 3 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
require 'active_support/core_ext/module/delegation'
|
||||
module Shoulda
|
||||
module Matchers
|
||||
module ActionController
|
||||
|
@ -34,10 +35,7 @@ module Shoulda
|
|||
expected_value === actual_value
|
||||
end
|
||||
end
|
||||
|
||||
def empty?
|
||||
flash.empty?
|
||||
end
|
||||
delegate :empty?, to: :flash
|
||||
|
||||
def use_now!
|
||||
@use_now = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue