aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2013-10-18 07:58:59 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2013-10-18 07:58:59 +0300
commit77f65da471906e1b2a8ec06720c47cf54baffd6b (patch)
tree37b500ef7a9eae01d180d5001b9ea64871ebeeea
parentfbe605051bc98dc609a0cb3ea01abbec084caa6b (diff)
downloadrefinerycms-blog-77f65da471906e1b2a8ec06720c47cf54baffd6b.tar.gz
refinerycms-blog-77f65da471906e1b2a8ec06720c47cf54baffd6b.tar.bz2
refinerycms-blog-77f65da471906e1b2a8ec06720c47cf54baffd6b.zip
Use expect syntax.
-rw-r--r--spec/helpers/refinery/blog/controller_helper_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/helpers/refinery/blog/controller_helper_spec.rb b/spec/helpers/refinery/blog/controller_helper_spec.rb
index 727e8b4..732f2bd 100644
--- a/spec/helpers/refinery/blog/controller_helper_spec.rb
+++ b/spec/helpers/refinery/blog/controller_helper_spec.rb
@@ -1,4 +1,5 @@
require 'spec_helper'
+
module Refinery
module Blog
describe ControllerHelper do
@@ -7,16 +8,17 @@ module Refinery
context "with draft posts" do
let!(:blog_post) { FactoryGirl.create(:blog_post, :draft => true, :tag_list => "first, second" ) }
+
it "does not return tags" do
- tags.should be_empty
+ expect(tags).to be_empty
end
end
context "with live posts" do
let!(:blog_post) { FactoryGirl.create(:blog_post, :tag_list => "first, second" ) }
- it "does not return tags" do
- tags.should_not be_empty
+ it "does return tags" do
+ expect(tags).to_not be_empty
end
end
end