Sha256: ab2bf9afce79e454993dee3be8defab9f2c60cf8e91f9883f6e730a534653b18

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

require 'spec_helper'
require 'parameters/types/object'

describe Parameters::Types::Object do
  describe "to_ruby" do
    it "should lookup the Ruby Class that the Type is named after" do
      described_class.to_ruby.should == ::Object
    end
  end

  describe "#===" do
    it "should always return true" do
      subject.should === 1
    end
  end

  describe "#coerce" do
    let(:obj) { Object.new }

    it "should pass through values" do
      subject.coerce(obj).should == obj
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
parameters-0.4.4 spec/types/object_spec.rb
parameters-0.4.3 spec/types/object_spec.rb
parameters-0.4.2 spec/types/object_spec.rb
parameters-0.4.0 spec/types/object_spec.rb
parameters-0.3.1 spec/types/object_spec.rb
parameters-0.3.0 spec/types/object_spec.rb