Sha256: c7b490e17edee696993b49244e187c193122a54711d5d90b058f0737eb48f83d
Contents?: true
Size: 535 Bytes
Versions: 50
Compression:
Stored size: 535 Bytes
Contents
require 'spec_helper' describe ACTV::NullObject do describe "#nil?" do it "returns true" do null_object = ACTV::NullObject.instance null_object.null?.should be_true end end describe "calling any method" do it "returns self" do null_object = ACTV::NullObject.instance null_object.any.should equal null_object end end describe "#respond_to?" do it "returns true" do null_object = ACTV::NullObject.instance null_object.respond_to?(:any).should be_true end end end
Version data entries
50 entries across 50 versions & 1 rubygems