aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/refinery/blog/engine_spec.rb15
-rw-r--r--spec/spec_helper.rb4
2 files changed, 17 insertions, 2 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
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ea550e2..9d4bffe 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -23,9 +23,9 @@ end
def each_run
FactoryGirl.reload
ActiveSupport::Dependencies.clear
-
+
load_all 'spec/support/**/*.rb'
- load_all 'spec/factories/**/*.rb'
+ load_all 'spec/factories/**/*.rb' if FactoryGirl.factories.none?
end
# If spork is available in the Gemfile it'll be used but we don't force it.