Sha256: 7ead4ad58f747e02a1c862e6753bb0480b5e8f4b87343aaf9ef7707c2e6cd91b
Contents?: true
Size: 655 Bytes
Versions: 4
Compression:
Stored size: 655 Bytes
Contents
require 'spec_helper' module Enki describe Stats do describe '#post_count' do it 'returns the total number of posts, published or not' do Post.should_receive(:count).and_return(2) Stats.new.post_count.should == 2 end end describe '#comment_count' do it 'returns the total number of comments' do Comment.should_receive(:count).and_return(2) Stats.new.comment_count.should == 2 end end describe '#tag_count' do it 'returns the total number of tags' do Tag.should_receive(:count).and_return(2) Stats.new.tag_count.should == 2 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
enki-engine-0.0.5 | spec/models/stats_spec.rb |
enki-engine-0.0.4 | spec/models/stats_spec.rb |
enki-engine-0.0.3 | spec/models/stats_spec.rb |
enki-engine-0.0.2 | spec/models/stats_spec.rb |