Sha256: 7c0869fe9b5007146ed09904241359b8ba082c2fcd16941b015544a19f7b5342

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe Object do
  setup_context

  it "includes V8::Cast module" do
    Object.included_modules.should include(Mustang::V8::Cast)
  end

  describe "#v8?" do
    it "returns false when object is not reflection from v8" do
      Object.new.should_not be_v8
    end
    
    it "returns true when object is reflection from v8" do
      Mustang::V8::Integer.new(1).should be_v8
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mustang-0.2.2 spec/mustang/core_ext/object_spec.rb
mustang-0.2.1 spec/mustang/core_ext/object_spec.rb
mustang-0.2.0 spec/mustang/core_ext/object_spec.rb