From f7adc9bd174c09790e4af3193c4a639b7b50ca19 Mon Sep 17 00:00:00 2001 From: Vitaly Tatarintsev Date: Fri, 17 Apr 2015 10:32:49 +0800 Subject: [PATCH] Remove :type => :feature from feature specs From capybara docs: `feature` is in fact just an alias for `describe ..., :type => :feature` https://github.com/jnicklas/capybara#using-capybara-with-rspec --- spec/features/home_page_spec.rb | 4 ++-- spec/features/share_page_spec.rb | 4 ++-- spec/features/subscribe_to_newsletter_spec.rb | 2 +- spec/features/user_login_and_logout_spec.rb | 2 +- spec/features/user_registers_spec.rb | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/features/home_page_spec.rb b/spec/features/home_page_spec.rb index b56816a..3f482b6 100644 --- a/spec/features/home_page_spec.rb +++ b/spec/features/home_page_spec.rb @@ -1,7 +1,7 @@ require 'rails_helper' -feature "Home page", :type => :feature do - +feature "Home page" do + scenario "visit" do visit "/" expect(page).to have_title "Welcome to RSpec Rails Examples" diff --git a/spec/features/share_page_spec.rb b/spec/features/share_page_spec.rb index 10d7662..c2436df 100644 --- a/spec/features/share_page_spec.rb +++ b/spec/features/share_page_spec.rb @@ -1,7 +1,7 @@ require 'rails_helper' -feature "Share page", type: :feature, js: true do - +feature "Share page", js: true do + scenario "displays 3rd party widgets" do visit "/share" expect(page).to have_title "Share Our Stuff!" diff --git a/spec/features/subscribe_to_newsletter_spec.rb b/spec/features/subscribe_to_newsletter_spec.rb index 3b875b1..47fff0e 100644 --- a/spec/features/subscribe_to_newsletter_spec.rb +++ b/spec/features/subscribe_to_newsletter_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -feature "Subscribe to newsletter", type: :feature do +feature "Subscribe to newsletter" do context "in browser with native date input", driver: driver_with(native_date_input: true) do diff --git a/spec/features/user_login_and_logout_spec.rb b/spec/features/user_login_and_logout_spec.rb index 53adae9..be53234 100644 --- a/spec/features/user_login_and_logout_spec.rb +++ b/spec/features/user_login_and_logout_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -feature "User logs in and logs out", :type => :feature do +feature "User logs in and logs out" do # `js: true` spec metadata means this will run using the `:selenium` # browser driver configured in spec/support/capybara.rb diff --git a/spec/features/user_registers_spec.rb b/spec/features/user_registers_spec.rb index d10cffa..f9a303c 100644 --- a/spec/features/user_registers_spec.rb +++ b/spec/features/user_registers_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -feature "User registers", :type => :feature do +feature "User registers" do scenario "with valid details" do