Keep ENV['LOCAL_HTTPS'] with ApplicationControllerSpec (fix random fail) (#3479)

* Keep ENV['LOCAL_HTTPS'] with ApplicationControllerSpec (fix random fail)

* use climate_control
This commit is contained in:
Yamagishi Kazutoshi
2017-06-01 00:09:17 +09:00
committed by Eugen Rochko
parent c00ead8a72
commit 41fa53253c
4 changed files with 19 additions and 12 deletions

View File

@ -1,11 +1,14 @@
require "rails_helper"
feature "Log in" do
scenario "A valid email and password user is able to log in" do
email = "test@example.com"
password = "password"
Fabricate(:user, email: email, password: password)
given(:email) { "test@examle.com" }
given(:password) { "password" }
background do
Fabricate(:user, email: email, password: password)
end
scenario "A valid email and password user is able to log in" do
visit new_user_session_path
fill_in "user_email", with: email
fill_in "user_password", with: password