Class: Booth::Comparisons::Scope
- Inherits:
-
Object
- Object
- Booth::Comparisons::Scope
- Includes:
- Logging, Calls
- Defined in:
- lib/booth/comparisons/scope.rb
Overview
Compares two scope names.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/booth/comparisons/scope.rb', line 13 def call return Tron.success(:identical_scopes) if expected == actual log { "The expected scope #{expected.inspect} does not match actual #{actual.inspect}" } Tron.failure :mismatching_scope, expected: raw_expected, actual: raw_actual, public_message: end |