Sha256: 0181bf04aa12dfef1003f598b465dfaddb89463ba22e0f07ebc90c853231de0c

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

require_relative "../lib/null_question"
require "minitest/autorun"

describe NullQuestion do
  describe "Object#null" do
    it "returns true" do
      assert_equal false, Object.new.null?
    end
  end

  describe "nil.null?" do
    it "returns false" do
      assert_equal true, nil.null?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
null_question-1.0.1 spec/null_question_spec.rb
null_question-1.0.0 spec/null_question_spec.rb