FactoryGirl - Validation failed: Time zone is not included in the list
问题 I'm using Rspec, FactoryGirl and Capybara. When using ActiveSupport::TimeZone.us_zones. I run my test for my requests/users_spec and it doesn't even hit the test as it has an issue at the Factory. Here is the error: Failure/Error: make_user_and_login ActiveRecord::RecordInvalid: Validation failed: Time zone is not included in the list # ./spec/support/user_macros.rb:3:in `make_user_and_login' # ./spec/requests/users_spec.rb:7:in `block (3 levels) in <top (required)>' This is my setup: app