langalex-couch_potato 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/couch_potato/view/model_view_spec.rb +1 -1
- data/spec/custom_view_spec.rb +4 -0
- metadata +1 -1
data/VERSION.yml
CHANGED
data/spec/custom_view_spec.rb
CHANGED
@@ -44,6 +44,10 @@ describe 'view' do
|
|
44
44
|
CouchPotato.database.view(Build.count(:reduce => true)).should == 1
|
45
45
|
end
|
46
46
|
|
47
|
+
it "should count zero documents" do
|
48
|
+
CouchPotato.database.view(Build.count(:reduce => true)).should == 0
|
49
|
+
end
|
50
|
+
|
47
51
|
describe "properties defined" do
|
48
52
|
it "should assign the configured properties" do
|
49
53
|
CouchPotato.couchrest_database.save_doc(:state => 'success', :time => '2008-01-01', :ruby_class => 'Build')
|