radiant-copy_move-extension 2.4.4 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.4
1
+ 2.4.5
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "radiant-copy_move-extension"
8
- s.version = "2.4.4"
8
+ s.version = "2.4.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Benny Degezelle", "Andrew vonderLuft"]
12
- s.date = "2013-02-18"
12
+ s.date = "2013-02-21"
13
13
  s.description = "With this extension you can copy or move a page with or without its children."
14
14
  s.email = "benny@gorilla-webdesign.be"
15
15
  s.extra_rdoc_files = [
@@ -54,7 +54,7 @@ Gem::Specification.new do |s|
54
54
  ]
55
55
  s.homepage = "https://github.com/jomz/radiant-copy-move"
56
56
  s.require_paths = ["lib"]
57
- s.rubygems_version = "1.8.25"
57
+ s.rubygems_version = "1.8.24"
58
58
  s.summary = "Copy/Move extension for Radiant CMS"
59
59
 
60
60
  if s.respond_to? :specification_version then
@@ -102,8 +102,8 @@ describe Admin::PagesController do
102
102
  end
103
103
 
104
104
  it "should have copied the descendants" do
105
- assigns[:new_page].should have(3).children
106
- assigns[:new_page].children.first.should have(1).child
105
+ assigns[:new_page].should have(pages(:parent).children.count).children
106
+ assigns[:new_page].children.descendants.count.should == pages(:parent).children.descendants.count
107
107
  end
108
108
 
109
109
  it "should write a flash notice" do
@@ -98,8 +98,8 @@ describe CopyMove do
98
98
  @new_page = @page.copy_tree_to(pages(:first))
99
99
  @new_page.parent.should == pages(:first)
100
100
  @new_page.should have(3).children
101
- @new_page.children.first.should have(1).child
102
- @new_page.children.first.children.first.should have(1).child
101
+ @new_page.should have(pages(:parent).children.count).children
102
+ @new_page.children.descendants.count.should == pages(:parent).children.descendants.count
103
103
  end
104
104
 
105
105
  it "should override the status when given" do
@@ -107,9 +107,10 @@ describe CopyMove do
107
107
  @new_page.status.should == Status[:hidden]
108
108
  @new_page.children.each do |child|
109
109
  child.status.should == Status[:hidden]
110
+ child.children.each do |grandchild|
111
+ grandchild.status.should == Status[:hidden]
112
+ end
110
113
  end
111
- @new_page.children.first.children.first.status.should == Status[:hidden]
112
- @new_page.children.first.children.first.children.first.status.should == Status[:hidden]
113
114
  end
114
115
  end
115
116
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-copy_move-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 4
9
- - 4
10
- version: 2.4.4
9
+ - 5
10
+ version: 2.4.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benny Degezelle
@@ -16,15 +16,16 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-02-18 00:00:00 Z
19
+ date: 2013-02-21 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
+ prerelease: false
22
23
  requirement: &id001 !ruby/object:Gem::Requirement
23
24
  none: false
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
27
- hash: 1960424459
28
+ hash: -2414235180
28
29
  segments:
29
30
  - 1
30
31
  - 0
@@ -32,10 +33,9 @@ dependencies:
32
33
  - rc
33
34
  - 2
34
35
  version: 1.0.0.rc2
35
- version_requirements: *id001
36
- name: radiant
37
- prerelease: false
38
36
  type: :runtime
37
+ name: radiant
38
+ version_requirements: *id001
39
39
  description: With this extension you can copy or move a page with or without its children.
40
40
  email: benny@gorilla-webdesign.be
41
41
  executables: []
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements: []
110
110
 
111
111
  rubyforge_project:
112
- rubygems_version: 1.8.25
112
+ rubygems_version: 1.8.24
113
113
  signing_key:
114
114
  specification_version: 3
115
115
  summary: Copy/Move extension for Radiant CMS