Oh I missed that one, good looking out :)  I'll fix it right now


On Sun, Sep 22, 2013 at 8:50 PM, Robert Fletcher
<notifications@github.com>wrote:

> In spec/models/notification_spec.rb:
>
> > +    end
> > +
> > +    context "when one archived notification" do
> > +      it "returns false" do
> > +        Notification.create!({ :recipient => user, :state => Notification::STATE_ARCHIVED})
> > +        Notification.unresponded?.should == false
> > +      end
> > +    end
> > +  end
> > +
> > +  describe ".unresponded_count" do
> > +    it "calls .count with a hash of conditions" do
> > +      Notification.should_receive(:count) do |hash|
> > +        hash.should be_a(Hash)
> > +      end
> > +      Notification.unresponded_count
>
> This is another place that should be hitting the database.
>
> notification = Notification.create!(:recipient => user)Notification.unresponded_count.should == 1
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mockdeep/better/pull/15/files#r6507651>
> .
>