diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-01-06 13:31:07 -0800 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-01-06 13:31:07 -0800 |
commit | 7dd6cb5e608945b4ae3a86276facfcb79f347a29 (patch) | |
tree | d6246858c9c75afc0dc15e1056037ca093643f22 /spec | |
parent | d6e9af98ef6922715c92bb407363ee8346877e22 (diff) | |
parent | edfa8b81e793f071feb8af417930f9beb3fb806e (diff) | |
download | refinerycms-blog-7dd6cb5e608945b4ae3a86276facfcb79f347a29.tar.gz refinerycms-blog-7dd6cb5e608945b4ae3a86276facfcb79f347a29.tar.bz2 refinerycms-blog-7dd6cb5e608945b4ae3a86276facfcb79f347a29.zip |
Merge pull request #169 from substantial/fix_dashboard_activity
Fix dashboard activity
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/refinery/blog/engine_spec.rb | 15 | ||||
-rw-r--r-- | spec/spec_helper.rb | 4 |
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. |