aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/refinery/blog
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2012-01-06 11:36:27 -0800
committerPete Higgins <pete@peterhiggins.org>2012-01-06 11:36:27 -0800
commitedfa8b81e793f071feb8af417930f9beb3fb806e (patch)
treed6246858c9c75afc0dc15e1056037ca093643f22 /spec/lib/refinery/blog
parent4a8a46ccc77b342f31ab60dafeb0b84ab538b190 (diff)
downloadrefinerycms-blog-edfa8b81e793f071feb8af417930f9beb3fb806e.tar.gz
refinerycms-blog-edfa8b81e793f071feb8af417930f9beb3fb806e.tar.bz2
refinerycms-blog-edfa8b81e793f071feb8af417930f9beb3fb806e.zip
Fix activity route generation. Workaround for resolve/refinerycms#1193.
Diffstat (limited to 'spec/lib/refinery/blog')
-rw-r--r--spec/lib/refinery/blog/engine_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/lib/refinery/blog/engine_spec.rb b/spec/lib/refinery/blog/engine_spec.rb
new file mode 100644
index 0000000..5b36fd8
--- /dev/null
+++ b/spec/lib/refinery/blog/engine_spec.rb
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+module Refinery
+ module Blog
+ describe Engine do
+ let(:activity) do
+ Refinery::Plugins.registered.find_by_name("refinerycms_blog").activity.first
+ end
+
+ it "sets the correct path for activity entries" do
+ activity.url.should eq("edit_refinery_admin_blog_posts_path")
+ end
+ end
+ end
+end