Sha256: ba8bc8a8b52f1631d598596b5e3d08c0ebec8f5bd290de7be8c28dccd19ae7ef
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
require 'helper' describe Twitter::NullObject do describe "#nil?" do it "returns true" do null_object = Twitter::NullObject.instance expect(null_object.null?).to be_true end end describe "calling any method" do it "returns self" do null_object = Twitter::NullObject.instance expect(null_object.any).to equal null_object end end describe "#respond_to?" do it "returns true" do null_object = Twitter::NullObject.instance expect(null_object.respond_to?(:any)).to be_true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.0.0.rc.1 | spec/twitter/null_object_spec.rb |