aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorPhilip Arndt <p@arndt.io>2014-08-22 18:01:29 +0200
committerPhilip Arndt <p@arndt.io>2014-08-22 18:10:51 +0200
commitea67de1af385339a07d4ab4ee06f294ad5638546 (patch)
treeb62faafa73a4d8df26630703e51fe5a80fe5e2f5 /spec/models
parent382a3790da1a1c4643ebc3a2ab895491e3bc052f (diff)
downloadrefinerycms-blog-ea67de1af385339a07d4ab4ee06f294ad5638546.tar.gz
refinerycms-blog-ea67de1af385339a07d4ab4ee06f294ad5638546.tar.bz2
refinerycms-blog-ea67de1af385339a07d4ab4ee06f294ad5638546.zip
Upgraded some testing syntax, changed to selenium for more passable results.
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/refinery/blog/category_spec.rb2
-rw-r--r--spec/models/refinery/blog/comment_spec.rb2
-rw-r--r--spec/models/refinery/blog/post_spec.rb10
3 files changed, 7 insertions, 7 deletions
diff --git a/spec/models/refinery/blog/category_spec.rb b/spec/models/refinery/blog/category_spec.rb
index 9cd5d97..0292991 100644
--- a/spec/models/refinery/blog/category_spec.rb
+++ b/spec/models/refinery/blog/category_spec.rb
@@ -2,7 +2,7 @@ require 'spec_helper'
module Refinery
module Blog
- describe Category do
+ describe Category, type: :model do
let(:category) { FactoryGirl.create(:blog_category) }
let(:refinery_user) { FactoryGirl.create(:refinery_user) }
diff --git a/spec/models/refinery/blog/comment_spec.rb b/spec/models/refinery/blog/comment_spec.rb
index 3a77100..7a35a59 100644
--- a/spec/models/refinery/blog/comment_spec.rb
+++ b/spec/models/refinery/blog/comment_spec.rb
@@ -2,7 +2,7 @@ require 'spec_helper'
module Refinery
module Blog
- describe Comment do
+ describe Comment, type: :model do
context "wiring up" do
let(:comment) { FactoryGirl.create(:blog_comment) }
diff --git a/spec/models/refinery/blog/post_spec.rb b/spec/models/refinery/blog/post_spec.rb
index 99946b8..73668e4 100644
--- a/spec/models/refinery/blog/post_spec.rb
+++ b/spec/models/refinery/blog/post_spec.rb
@@ -2,7 +2,7 @@ require 'spec_helper'
module Refinery
module Blog
- describe Post do
+ describe Post, type: :model do
let(:post) { FactoryGirl.create(:blog_post) }
describe "validations" do
@@ -159,7 +159,7 @@ module Refinery
end
it "should be true" do
- described_class.comments_allowed?.should be_true
+ described_class.comments_allowed?.should be_truthy
end
end
@@ -169,7 +169,7 @@ module Refinery
end
it "should be false" do
- described_class.comments_allowed?.should be_false
+ described_class.comments_allowed?.should be_falsey
end
end
end
@@ -187,7 +187,7 @@ module Refinery
end
it "should be true" do
- described_class.teasers_enabled?.should be_true
+ described_class.teasers_enabled?.should be_truthy
end
end
@@ -197,7 +197,7 @@ module Refinery
end
it "should be false" do
- described_class.teasers_enabled?.should be_false
+ described_class.teasers_enabled?.should be_falsey
end
end
end