Skip to content

Commit

Permalink
Remove :type => :feature from feature specs
Browse files Browse the repository at this point in the history
From capybara docs:

  `feature` is in fact just an alias for `describe ..., :type => :feature`

https://github.com/jnicklas/capybara#using-capybara-with-rspec
  • Loading branch information
ck3g committed Apr 17, 2015
1 parent 72c2ea5 commit f7adc9b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions spec/features/home_page_spec.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions spec/features/share_page_spec.rb
Original file line number Diff line number Diff line change
@@ -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!"
Expand Down
2 changes: 1 addition & 1 deletion spec/features/subscribe_to_newsletter_spec.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/features/user_login_and_logout_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/features/user_registers_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

feature "User registers", :type => :feature do
feature "User registers" do

scenario "with valid details" do

Expand Down

0 comments on commit f7adc9b

Please sign in to comment.