Skip to content

Commit

Permalink
updates for RSpec 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKehoe committed Jun 4, 2014
1 parent 9766ec0 commit b8d5c62
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 18 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--color
--format documentation
--require spec_helper
--require rails_helper
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ GEM
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.1)
sprockets-rails (~> 2.0)
rails_layout (1.0.17)
rails_layout (1.0.19)
railties (4.1.1)
actionpack (= 4.1.1)
activesupport (= 4.1.1)
Expand Down
2 changes: 0 additions & 2 deletions spec/features/users/sign_in_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'rails_helper'

# Feature: Sign in
# As a user
# I want to sign in
Expand Down
2 changes: 0 additions & 2 deletions spec/features/users/sign_out_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'rails_helper'

# Feature: Sign out
# As a user
# I want to sign out
Expand Down
4 changes: 2 additions & 2 deletions spec/features/users/user_delete_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'rails_helper'
include Warden::Test::Helpers
Warden.test_mode!

Expand All @@ -16,7 +15,8 @@
# Given I am signed in
# When I delete my account
# Then I should see an account deleted message
scenario 'user can delete own account', :slow do
scenario 'user can delete own account' do
skip 'skip a slow test'
user = FactoryGirl.create(:user)
login_as(user, :scope => :user)
visit edit_user_registration_path(user)
Expand Down
1 change: 0 additions & 1 deletion spec/features/users/user_edit_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'rails_helper'
include Warden::Test::Helpers
Warden.test_mode!

Expand Down
1 change: 0 additions & 1 deletion spec/features/users/user_index_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'rails_helper'
include Warden::Test::Helpers
Warden.test_mode!

Expand Down
1 change: 0 additions & 1 deletion spec/features/users/user_show_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'rails_helper'
include Warden::Test::Helpers
Warden.test_mode!

Expand Down
2 changes: 0 additions & 2 deletions spec/features/visitors/home_page_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'rails_helper'

# Feature: Home page
# As a visitor
# I want to visit a home page
Expand Down
2 changes: 0 additions & 2 deletions spec/features/visitors/navigation_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'rails_helper'

# Feature: Navigation links
# As a visitor
# I want to see navigation links
Expand Down
2 changes: 0 additions & 2 deletions spec/features/visitors/sign_up_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'rails_helper'

# Feature: Sign up
# As a visitor
# I want to sign up
Expand Down
2 changes: 0 additions & 2 deletions spec/models/user_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'rails_helper'

describe User do

before(:each) { @user = User.new(email: '[email protected]') }
Expand Down

0 comments on commit b8d5c62

Please sign in to comment.