diff options
author | Philip Arndt <p@arndt.io> | 2014-08-22 18:01:29 +0200 |
---|---|---|
committer | Philip Arndt <p@arndt.io> | 2014-08-22 18:10:51 +0200 |
commit | ea67de1af385339a07d4ab4ee06f294ad5638546 (patch) | |
tree | b62faafa73a4d8df26630703e51fe5a80fe5e2f5 /spec/features | |
parent | 382a3790da1a1c4643ebc3a2ab895491e3bc052f (diff) | |
download | refinerycms-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/features')
-rw-r--r-- | spec/features/refinery/blog/admin/categories_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/refinery/blog/admin/comments_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/refinery/blog/admin/menu_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/refinery/blog/admin/posts_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/refinery/blog/categories_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/refinery/blog/posts_spec.rb | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/spec/features/refinery/blog/admin/categories_spec.rb b/spec/features/refinery/blog/admin/categories_spec.rb index f3cdc5a..f322562 100644 --- a/spec/features/refinery/blog/admin/categories_spec.rb +++ b/spec/features/refinery/blog/admin/categories_spec.rb @@ -1,7 +1,7 @@ # encoding: utf-8 require 'spec_helper' -describe "Categories admin" do +describe "Categories admin", type: :feature do refinery_login_with :refinery_user let(:title) { "lol" } diff --git a/spec/features/refinery/blog/admin/comments_spec.rb b/spec/features/refinery/blog/admin/comments_spec.rb index 08fe9df..0eb5108 100644 --- a/spec/features/refinery/blog/admin/comments_spec.rb +++ b/spec/features/refinery/blog/admin/comments_spec.rb @@ -3,7 +3,7 @@ require "spec_helper" module Refinery module Blog module Admin - describe Comment do + describe Comment, type: :feature do refinery_login_with :refinery_user describe "#index" do diff --git a/spec/features/refinery/blog/admin/menu_spec.rb b/spec/features/refinery/blog/admin/menu_spec.rb index ba10ffe..3411c6c 100644 --- a/spec/features/refinery/blog/admin/menu_spec.rb +++ b/spec/features/refinery/blog/admin/menu_spec.rb @@ -1,8 +1,8 @@ require 'spec_helper' -describe "Blog menu entry" do +describe "Blog menu entry", type: :feature do refinery_login_with :refinery_user - + it "is highlighted when managing the blog" do visit refinery.admin_root_path diff --git a/spec/features/refinery/blog/admin/posts_spec.rb b/spec/features/refinery/blog/admin/posts_spec.rb index 5dca929..2333ea0 100644 --- a/spec/features/refinery/blog/admin/posts_spec.rb +++ b/spec/features/refinery/blog/admin/posts_spec.rb @@ -4,7 +4,7 @@ require "spec_helper" module Refinery module Blog module Admin - describe Post do + describe Post, type: :feature do refinery_login_with :refinery_user let!(:blog_category) do @@ -49,7 +49,7 @@ module Refinery page.should have_css '.blog_categories' page.should have_css "#post_category_ids_#{blog_category.id}" check blog_category.title - find_field("post_category_ids_#{blog_category.id}").should be_checked + find(:css, "#post_category_ids_#{blog_category.id}").checked?.should be_truthy click_button "Save" page.should have_content("was successfully added.") end diff --git a/spec/features/refinery/blog/categories_spec.rb b/spec/features/refinery/blog/categories_spec.rb index 021dd94..efcf388 100644 --- a/spec/features/refinery/blog/categories_spec.rb +++ b/spec/features/refinery/blog/categories_spec.rb @@ -1,7 +1,7 @@ require "spec_helper" module Refinery - describe "BlogCategories" do + describe "BlogCategories", type: :feature do refinery_login_with :refinery_user context "has one category and post" do diff --git a/spec/features/refinery/blog/posts_spec.rb b/spec/features/refinery/blog/posts_spec.rb index 1fe56bc..daba07e 100644 --- a/spec/features/refinery/blog/posts_spec.rb +++ b/spec/features/refinery/blog/posts_spec.rb @@ -1,7 +1,7 @@ require "spec_helper" module Refinery - describe "Blog::Posts" do + describe "Blog::Posts", type: :feature do refinery_login_with :refinery_user context "when has blog posts" do |