aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/refinery
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/refinery')
-rw-r--r--spec/lib/refinery/blog/engine_spec.rb19
1 files changed, 15 insertions, 4 deletions
diff --git a/spec/lib/refinery/blog/engine_spec.rb b/spec/lib/refinery/blog/engine_spec.rb
index 5b36fd8..1c44da7 100644
--- a/spec/lib/refinery/blog/engine_spec.rb
+++ b/spec/lib/refinery/blog/engine_spec.rb
@@ -3,12 +3,23 @@ require 'spec_helper'
module Refinery
module Blog
describe Engine do
- let(:activity) do
- Refinery::Plugins.registered.find_by_name("refinerycms_blog").activity.first
+ describe "plugin activity" 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
- it "sets the correct path for activity entries" do
- activity.url.should eq("edit_refinery_admin_blog_posts_path")
+ describe ".load_seed" do
+ it "is idempotent" do
+ Refinery::Blog::Engine.load_seed
+ Refinery::Blog::Engine.load_seed
+
+ Refinery::Page.where(:link_url => '/blog').count.should eq(1)
+ end
end
end
end