Sha256: 245b63e745bc542b524489ba7a06516538cf16d8b6137fa537ac20b8a9f574ee
Contents?: true
Size: 701 Bytes
Versions: 3
Compression:
Stored size: 701 Bytes
Contents
require 'spec_helper' module RailsBestPractices::Core describe Nil do let(:core_nil) { Nil.new } context "to_s" do it "should return self" do core_nil.to_s.should == core_nil end end context "hash_size" do it "should return 0" do core_nil.hash_size.should == 0 end end context "method_missing" do it "should return self" do core_nil.undefined.should == core_nil end end context "present?" do it "should return false" do core_nil.should_not be_present end end context "blank?" do it "should return true" do core_nil.should be_blank end end end end
Version data entries
3 entries across 3 versions & 1 rubygems