Class: Booth::Comparisons::Scope

Inherits:
Object
  • Object
show all
Includes:
Logging, Calls
Defined in:
lib/booth/comparisons/scope.rb

Overview

Compares two scope names.

Instance Method Summary collapse

Instance Method Details

#callObject



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