Sha256: 34c2209e01d746cd75662b1289c405b16c56c6b5e1095c17a9a72522f7cb7ab4

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

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

describe V8::Undefined do
  setup_context

  it "is kind of V8::UndefinedClass" do
    subject.should be_kind_of(V8::UndefinedClass)
  end

  describe "#null?" do
    it "returns false" do
      subject.should_not be_null
    end
  end

  describe "#undefined?" do
    it "returns true" do
      subject.should be_undefined
    end
  end

  describe "#empty?" do
    it "returns false" do
      subject.should_not be_empty
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mustang-0.1.1 spec/v8/undefined_spec.rb
mustang-0.1.0 spec/v8/undefined_spec.rb