Sha256: 4241220e0f8fd25b777f9bf2c79057fa9a0aa9fbf4bab216d91cdfe66dccfb36
Contents?: true
Size: 475 Bytes
Versions: 4
Compression:
Stored size: 475 Bytes
Contents
require 'helper' describe Twitter::NullObject do before do @null_object = Twitter::NullObject.new end describe "#nil?" do it "returns true" do expect(@null_object.nil?).to be true end end describe "calling any method" do it "returns self" do expect(@null_object.any).to equal @null_object end end describe "#respond_to?" do it "returns true" do expect(@null_object.respond_to?(:any)).to be true end end end
Version data entries
4 entries across 4 versions & 1 rubygems