Green user sign in flow

This commit is contained in:
2014-12-24 09:34:05 +01:00
parent a30b17648d
commit 4faee9aa6e
6 changed files with 126 additions and 37 deletions
+16
View File
@@ -9,6 +9,7 @@ require 'capybara/rspec'
require 'turnip/capybara'
require 'in_memory_q_counter'
require 'capybara-screenshot/rspec'
require 'webmock/rspec'
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
@@ -21,6 +22,7 @@ Devise.stretches = 1
Capybara.javascript_driver = :webkit
Capybara.default_wait_time = 4 # ember needs more time than the default of 2
Capybara::Screenshot.webkit_options = { width: 1024, height: 768 }
WebMock.disable_net_connect!(allow_localhost: true)
#Capybara.javascript_driver = :selenium
@@ -106,6 +108,20 @@ RSpec.configure do |config|
uid: '123456790'
}
OmniAuth.config.add_mock :instagram, {
info: {
nickname: 'Iggy',
name: "Instagram Jane",
first_name: "Insta"
},
credentials: {
'token' => 'igAuthToken234',
'expires_at' => 1.week.from_now.to_i,
'expires' => true
},
uid: '123498765'
}
# Use color in STDOUT
config.color = true
config.fail_fast = false