Sha256: 8e3fbd6d274a651b59f3d19e1f56cf669488acd44ae569c48d334efd8aac0eb9

Contents?: true

Size: 619 Bytes

Versions: 7

Compression:

Stored size: 619 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinerycms-blog-2.1.0 spec/lib/refinery/blog/engine_spec.rb
refinerycms-blog-2.0.5 spec/lib/refinery/blog/engine_spec.rb
refinerycms-blog-2.0.4 spec/lib/refinery/blog/engine_spec.rb
refinerycms-blog-2.0.3 spec/lib/refinery/blog/engine_spec.rb
refinerycms-blog-2.0.2 spec/lib/refinery/blog/engine_spec.rb
refinerycms-blog-2.0.1 spec/lib/refinery/blog/engine_spec.rb
refinerycms-blog-2.0.0 spec/lib/refinery/blog/engine_spec.rb