Sha256: 8ebaaf94747fcf94b5958e9354ee6ae724616c624f51816490db27328b3ca4a2

Contents?: true

Size: 461 Bytes

Versions: 29

Compression:

Stored size: 461 Bytes

Contents

module W3Clove
  class MockedValidator
    attr_accessor :errors, :warnings

    def initialize
      @errors, @warnings = [], []
    end

    def add_error(message_id, line, message)
      @errors << W3Clove::MockedMessage.new(message_id, line, message)
    end

    def add_warning(message_id, line, message)
      @warnings << W3Clove::MockedMessage.new(message_id, line, message)
    end
  end

  MockedMessage = Struct.new(:message_id, :line, :message)
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
w3clove-0.8 spec/mocks/mocked_validator.rb
w3clove-0.7.11 spec/mocks/mocked_validator.rb
w3clove-0.7.10 spec/mocks/mocked_validator.rb
w3clove-0.7.9 spec/mocks/mocked_validator.rb
w3clove-0.7.8 spec/mocks/mocked_validator.rb
w3clove-0.7.7 spec/mocks/mocked_validator.rb
w3clove-0.7.6 spec/mocks/mocked_validator.rb
w3clove-0.7.5 spec/mocks/mocked_validator.rb
w3clove-0.7.4 spec/mocks/mocked_validator.rb
w3clove-0.7.3 spec/mocks/mocked_validator.rb
w3clove-0.7.2 spec/mocks/mocked_validator.rb
w3clove-0.7.1 spec/mocks/mocked_validator.rb
w3clove-0.7 spec/mocks/mocked_validator.rb
w3clove-0.6.2 spec/mocks/mocked_validator.rb
w3clove-0.6.1 spec/mocks/mocked_validator.rb
w3clove-0.6 spec/mocks/mocked_validator.rb
w3clove-0.5.1 spec/mocks/mocked_validator.rb
w3clove-0.5 spec/mocks/mocked_validator.rb
w3clove-0.4.5 spec/mocks/mocked_validator.rb
w3clove-0.4.4 spec/mocks/mocked_validator.rb