Sha256: 3b2426fea987c88ba90fe1eecef54ca65b14995f0af1c0ca56f37833fcbb90bb

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 Bytes

Contents

#!/usr/bin/env rspec
require 'spec_helper'
require File.dirname(__FILE__) + '/../../../../../plugins/mcollective/validator/any_validator.rb'

module MCollective
  module Validator
    describe "#validate" do
      it "should accept anything" do
        ["1", 1, :one, Time.now].each do |data|
          Validator::AnyValidator.validate(data)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mcollective-client-2.2.4 spec/unit/plugins/mcollective/validator/any_validator_spec.rb
mcollective-client-2.2.3 spec/unit/plugins/mcollective/validator/any_validator_spec.rb
mcollective-client-2.2.2 spec/unit/plugins/mcollective/validator/any_validator_spec.rb