aboutsummaryrefslogblamecommitdiffstats
path: root/spec/lib/refinery/blog/engine_spec.rb
blob: b64601aa733e71dc0f6cc3a244524bbd1a004e98 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11




                      





                                                                                      
                                                                      
           

         

                              

                          


                                                                       



         
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("refinery.edit_blog_admin_post_path")
        end
      end

      describe ".load_seed" do
        it "is idempotent" do
          Engine.load_seed
          Engine.load_seed

          Refinery::Page.where(:link_url => '/blog').count.should eq(1)
        end
      end
    end
  end
end