Sha256: e8f93b77ddf3d01897b58ba2600bad25ffec630e7c2742269d3b1d9927935253

Contents?: true

Size: 439 Bytes

Versions: 21

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

class Sinclair
  module Matchers
    # @api private
    # @author darthjee
    # @abstract
    #
    # Base class for change_method_on matcher
    class ChangeMethodOn < Base
      include MethodTo

      private

      # @private
      #
      # Checks if a method was changed
      #
      # @return Boolean
      def check
        initial_state && initial_state != final_state
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
sinclair-2.1.1 lib/sinclair/matchers/change_method_on.rb
sinclair-2.1.0 lib/sinclair/matchers/change_method_on.rb
sinclair-2.0.1 lib/sinclair/matchers/change_method_on.rb
sinclair-2.0.0 lib/sinclair/matchers/change_method_on.rb
sinclair-1.16.3 lib/sinclair/matchers/change_method_on.rb
sinclair-1.16.2 lib/sinclair/matchers/change_method_on.rb
sinclair-1.16.1 lib/sinclair/matchers/change_method_on.rb
sinclair-1.16.0 lib/sinclair/matchers/change_method_on.rb
sinclair-1.15.0 lib/sinclair/matchers/change_method_on.rb
sinclair-1.14.2 lib/sinclair/matchers/change_method_on.rb
sinclair-1.14.1 lib/sinclair/matchers/change_method_on.rb
sinclair-1.14.0 lib/sinclair/matchers/change_method_on.rb
sinclair-1.13.0 lib/sinclair/matchers/change_method_on.rb
sinclair-1.12.1 lib/sinclair/matchers/change_method_on.rb
sinclair-1.12.0 lib/sinclair/matchers/change_method_on.rb
sinclair-1.11.0 lib/sinclair/matchers/change_method_on.rb
sinclair-1.10.0 lib/sinclair/matchers/change_method_on.rb
sinclair-1.9.0 lib/sinclair/matchers/change_method_on.rb
sinclair-1.8.0 lib/sinclair/matchers/change_method_on.rb
sinclair-1.7.0 lib/sinclair/matchers/change_method_on.rb