Last active
September 2, 2015 09:20
Revisions
-
David Long revised this gist
Mar 20, 2014 . 4 changed files with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ # auth.gemspec require 'auth/version' Gem::Specification.new do |s| This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ # spec/support/capybara.rb require 'capybara/rspec' require 'capybara/rails' This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ # spec/features/sign_in_spec.rb require 'spec_helper' describe 'Sign in flow' do This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ # spec/spec_helper.rb ENV['RAILS_ENV'] = 'test' require File.join File.dirname(__FILE__), 'dummy', 'config', 'environment.rb' -
David Long created this gist
Mar 20, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ require 'auth/version' Gem::Specification.new do |s| ... s.add_dependency 'rails', '~> 4.0.4' s.add_dependency 'devise', '~> 3.2.4' s.add_development_dependency 'sqlite3' s.add_development_dependency 'rspec-rails', '~> 3.0.0.beta' s.add_development_dependency 'factory_girl_rails', '~> 4.4.1' s.add_development_dependency 'database_cleaner', '~> 1.2.0' s.add_development_dependency 'capybara', '~> 2.2.1' end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ require 'spec_helper' describe 'Sign in flow' do let(:user) { FactoryGirl.create :user } context 'with valid credentials' do it 'logs a user in' do visit '/auth/users/sign_in' within '#new_user' do fill_in 'Email', with: user.email fill_in 'Password', with: user.password end click_link 'Sign in' expect(page).to have_content 'Success' end end end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ ENV['RAILS_ENV'] = 'test' require File.join File.dirname(__FILE__), 'dummy', 'config', 'environment.rb' Dir[File.join File.dirname(__FILE__), 'support', '**', '*.rb'].each { |f| require f } RSpec.configure do |config| end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ require 'capybara/rspec' require 'capybara/rails' Capybara.app = Auth::Engine RSpec.configure do |config| config.include RecruiticsAuth::Engine.routes.url_helpers end