Sha256: 4748851f52bbb21178d5515f8fedf2394f6854356b74e9e661daf8ce8224cf84

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

# -*- coding: utf-8 -*-
require "sixarm_ruby_to_id_test"
require "sixarm_ruby_to_id/nil"

describe NilClass do

  describe "#to_date_id" do
    it "always returns nil" do
      nil.to_date_id.must_be_same_as nil
    end
  end

  describe "#to_date_ids" do
    it "always returns nil" do
      nil.to_date_ids.must_be_same_as nil
    end
  end

  describe "#to_stint_id" do
    it "always returns nil" do
      nil.to_stint_id.must_be_same_as nil
    end
  end

  describe "#to_stint_ids" do
    it "always returns nil" do
      nil.to_stint_ids.must_be_same_as nil
    end
  end

  describe "#to_i_id" do
    it "always returns nil" do
      nil.to_i_id.must_be_same_as nil
    end
  end

  describe "#to_i_ids" do
    it "always returns nil" do
      nil.to_i_ids.must_be_same_as nil
    end
  end

  describe "#to_s_id" do
    it "always returns nil" do
      nil.to_s_id.must_be_same_as nil
    end
  end

  describe "#to_s_ids" do
    it "always returns nil" do
      nil.to_s_ids.must_be_same_as nil
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sixarm_ruby_to_id-1.1.0 test/sixarm_ruby_to_id_test/nil_test.rb