sunrise-cms 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,6 +52,14 @@ describe Sunrise::AbstractModel do
52
52
  model = Sunrise::Utils.get_model("structures", {:view => 'table'})
53
53
  model.current_list.should == :table
54
54
  end
55
+
56
+ it "should destroy all items" do
57
+ @structure = FactoryGirl.create(:structure_page)
58
+
59
+ lambda {
60
+ @abstract_model.destroy_all({:ids => [@structure.id]})
61
+ }.should change { Structure.count }.by(-1)
62
+ end
55
63
  end
56
64
  end
57
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunrise-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-16 00:00:00.000000000 Z
13
+ date: 2013-02-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -526,7 +526,8 @@ files:
526
526
  - lib/generators/sunrise/templates/spec/controllers/welcome_controller_spec.rb
527
527
  - lib/generators/sunrise/templates/config/database.yml
528
528
  - lib/generators/sunrise/templates/config/nginx-config
529
- - lib/generators/sunrise/templates/config/sunrise.rb
529
+ - lib/generators/sunrise/templates/config/active_record/sunrise.rb
530
+ - lib/generators/sunrise/templates/config/mongoid/sunrise.rb
530
531
  - lib/generators/sunrise/templates/config/logrotate-config
531
532
  - lib/generators/sunrise/templates/config/seeds.rb
532
533
  - lib/generators/sunrise/templates/views/layouts/application.html.erb