Sha256: b74e6fc6e11e7c249184266a03d31ff73385fbb6182ac3540205882715a831c8

Contents?: true

Size: 523 Bytes

Versions: 3

Compression:

Stored size: 523 Bytes

Contents

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

describe Mustang::V8::Undefined do
  setup_context

  it "is kind of Mustang::V8::UndefinedClass" do
    subject.should be_kind_of(Mustang::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

3 entries across 3 versions & 1 rubygems

Version Path
mustang-0.2.2 spec/mustang/v8/undefined_spec.rb
mustang-0.2.1 spec/mustang/v8/undefined_spec.rb
mustang-0.2.0 spec/mustang/v8/undefined_spec.rb