blob: eae2c3c1de32248eea4ac0e6715ad92112e710cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
require 'spec_helper'
module Refinery
module Blog
describe Engine do
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_post_path")
end
end
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
end
|