Permalink
Browse files

Add NullObject spec

  • Loading branch information...
1 parent a89ec0f commit afe866332d5c519d7fb42e4b528378cd32128b47 @sferik committed Jul 28, 2013
Showing with 19 additions and 0 deletions.
  1. +19 −0 spec/twitter/null_object_spec.rb
View
19 spec/twitter/null_object_spec.rb
@@ -0,0 +1,19 @@
+require 'helper'
+
+describe Twitter::NullObject do
+
+ describe "#null?" do
+ it "returns true" do
+ null_object = Twitter::NullObject.new
+ expect(null_object.null?).to be_true
+ end
+ end
+
+ describe "#!" do
+ it "returns true" do
+ null_object = Twitter::NullObject.new
+ expect(!null_object).to be_true
+ end
+ end
+
+end

0 comments on commit afe8663

Please sign in to comment.