Add spanish locales and gravatar options

This commit is contained in:
2026-03-09 11:17:25 -05:00
parent 2711edb167
commit 4e1d3bd052
32 changed files with 640 additions and 106 deletions
+31 -29
View File
@@ -123,7 +123,9 @@ RSpec.configure do |config|
#config.mock_with :rspec
config.include FactoryBot::Syntax::Methods
config.include FactoryAttributesFor
config.include Devise::TestHelpers, type: :controller
#config.include Devise::TestHelpers, type: :controller
config.include Devise::Test::ControllerHelpers, type: :controller
config.include Devise::Test::IntegrationHelpers, type: :request
config.include SpecControllerHelpers, type: :controller
config.include EndWithMatcher
config.include Matchers
@@ -142,34 +144,34 @@ RSpec.configure do |config|
config.render_views = true
config.expect_with(:rspec) { |c| c.syntax = [:expect, :should] }
OmniAuth.config.test_mode = true
OmniAuth.config.add_mock :facebook, {
info: {
nickname: 'Joey',
name: "Facebook Joe",
first_name: "Facebook Joe"
},
credentials: {
'token' => 'fbAuthToken234',
'expires_at' => 1.week.from_now.to_i,
'expires' => true
},
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'
}
# OmniAuth.config.test_mode = true
# OmniAuth.config.add_mock :facebook, {
# info: {
# nickname: 'Joey',
# name: "Facebook Joe",
# first_name: "Facebook Joe"
# },
# credentials: {
# 'token' => 'fbAuthToken234',
# 'expires_at' => 1.week.from_now.to_i,
# 'expires' => true
# },
# 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