Sha256: 4b08156e6066f993f5dcd7d1d0d4c8c94f8b17eb25661fda3c7e243c296be500

Contents?: true

Size: 364 Bytes

Versions: 4

Compression:

Stored size: 364 Bytes

Contents

require "spec_helper"

describe Membrane::Schemas::Any do
  describe "#validate" do
    it "should always return nil" do
      schema = Membrane::Schemas::Any.new
      # Smoke test more than anything. Cannot validate this with 100%
      # certainty.
      [1, "hi", :test, {}, []].each do |o|
        schema.validate(o).should be_nil
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
membrane-1.1.0 spec/schemas/any_spec.rb
membrane-1.0.0 spec/schemas/any_spec.rb
membrane-0.0.5 spec/schemas/any_spec.rb
membrane-0.0.4 spec/schemas/any_spec.rb