Skip to content

Commit

Permalink
Merge 3f53092 into db536b7
Browse files Browse the repository at this point in the history
  • Loading branch information
Harper Maddox committed Jun 7, 2015
2 parents db536b7 + 3f53092 commit 7f4b77a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/twitter/null_object.rb
Expand Up @@ -8,6 +8,10 @@ module Twitter
config.define_explicit_conversions
config.define_implicit_conversions
config.predicates_return false

def to_hash
{}
end

def !
true
Expand Down
5 changes: 5 additions & 0 deletions spec/twitter/null_object_spec.rb
Expand Up @@ -90,6 +90,11 @@
expect(subject.to_str).to be_empty
end
end
describe '#to_hash' do
it 'returns an empty hash' do
expect(subject.to_hash).to be_empty
end
end
end

describe 'predicates' do
Expand Down

0 comments on commit 7f4b77a

Please sign in to comment.