refinerycms-dashboard 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Refinery
16
16
  :what => record.send(activity.title),
17
17
  :kind => record.class.model_name.human,
18
18
  :action => t("with_article \"#{article}\"", :scope => "refinery.#{action}")
19
- ).downcase.capitalize, eval("#{activity.url}(#{activity.nesting("record")}record)")
19
+ ).downcase.capitalize, eval("#{activity.url}(#{activity.nesting("record")})")
20
20
  end
21
21
  end
22
22
 
@@ -46,5 +46,17 @@ describe "dashboard" do
46
46
  3.times { |n| page.should have_content("Ugisozols#{n} user was added") }
47
47
  3.times { |n| page.should have_content("Refinery cms #{n} page was added") }
48
48
  end
49
+
50
+ # see https://github.com/resolve/refinerycms/issues/1673
51
+ it "uses proper link for nested pages" do
52
+ # we need to increase updated_at because dashboard entries are sorted by
53
+ # updated_at column and we need this page to be at the top of the list
54
+ nested = FactoryGirl.create(:page, :parent_id => Refinery::Page.last.id,
55
+ :updated_at => Time.now + 10.seconds)
56
+
57
+ visit refinery.admin_dashboard_path
58
+
59
+ page.should have_selector("a[href='#{refinery.edit_admin_page_path(nested.uncached_nested_url)}']")
60
+ end
49
61
  end
50
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-dashboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2012-05-14 00:00:00.000000000 Z
16
+ date: 2012-06-11 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: refinerycms-core
@@ -22,7 +22,7 @@ dependencies:
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 2.0.4
25
+ version: 2.0.5
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.4
33
+ version: 2.0.5
34
34
  description: The dashboard is usually the first extension the user sees in the backend
35
35
  of Refinery CMS. It displays useful information and contains links to common functionality.
36
36
  email: info@refinerycms.com
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  segments:
98
98
  - 0
99
- hash: 3286089485832651626
99
+ hash: 1584869182524041726
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  none: false
102
102
  requirements:
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  segments:
107
107
  - 0
108
- hash: 3286089485832651626
108
+ hash: 1584869182524041726
109
109
  requirements: []
110
110
  rubyforge_project: refinerycms
111
111
  rubygems_version: 1.8.22