module RescueGroups
  class BaseMock
    class << self
      def single_success
        mocked_class.new(test_hash)
      end

      def multiple_success
        [single_success]
      end

      def single_error
        fail "Unable to find #{ self.class.name }"
      end

      def multiple_error
        []
      end
    end
  end
end

module RescueGroups
  class BaseMock
    class << self
      def find
        mocked_class.new(test_hash)
      end

      def where
        [single_success]
      end

      def find_not_found
        fail "Unable to find #{ self.class.name }"
      end

      def where_not_found
        []
      end
    end
  end
end

Rename mocked methods to match actual methods
Rename mocked methods to match actual methods
