Sha256: 2a687816d20013bdd72cfc209bd833369425838f1a75e97a05b8e219f658b012

Contents?: true

Size: 898 Bytes

Versions: 1

Compression:

Stored size: 898 Bytes

Contents

# Minimal stub allowing a plugin to work
module Guard
  class Plugin
    attr_reader :options

    def initialize(options)
      @options = options
    end
  end

  class Notifier
    def self.notify(_msg, _options = {})
      fail NotImplementedError, 'stub this method in your tests'
    end
  end

  class UI
    def self.info(_msg, _options = {})
      fail NotImplementedError, 'stub this method in your tests'
    end

    def self.warning(_msg, _options = {})
      fail NotImplementedError, 'stub this method in your tests'
    end

    def self.error(_msg, _options = {})
      fail NotImplementedError, 'stub this method in your tests'
    end

    def self.debug(_msg, _options = {})
      fail NotImplementedError, 'stub this method in your tests'
    end

    def self.deprecation(_msg, _options = {})
      fail NotImplementedError, 'stub this method in your tests'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
guard-compat-0.0.2 lib/guard/compat/test/helper.rb