Commit 425c976b authored by Alexandre Friquet's avatar Alexandre Friquet

Fixes broken tests.

parent 3a4eaf58
......@@ -42,7 +42,7 @@
<%- end %>
<%= internal_subscription_label(subscription) %>
</li>
<%- end %>
<%- end if @internal_subscriptions %>
</ul>
<%- unless @member.collaborating_medicosocial_org? %>
<h2>Adhérents extérieurs</h2>
......@@ -51,7 +51,7 @@
<li>
<%= external_subscription_label(subscription, @member) %>
</li>
<%- end %>
<%- end if @external_subscriptions %>
</ul>
<%- end %>
</aside>
......
......@@ -21,7 +21,7 @@ environment ENV.fetch("RAILS_ENV") { "development" }
# Workers do not work on JRuby or Windows (both of which do not support
# processes).
#
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
workers ENV.fetch("WEB_CONCURRENCY") { 3 }
# Use the `preload_app!` method when specifying a `workers` number.
# This directive tells Puma to first boot the application and load code
......@@ -30,7 +30,7 @@ environment ENV.fetch("RAILS_ENV") { "development" }
# you need to make sure to reconnect any threads in the `on_worker_boot`
# block.
#
# preload_app!
preload_app!
# If you are preloading your application and using Active Record, it's
# recommended that you close any connections to the database before workers
......@@ -47,9 +47,9 @@ end
# or connections that may have been created at application boot, Ruby
# cannot share connections between processes.
#
# on_worker_boot do
# ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
# end
on_worker_boot do
ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
end
# Allow puma to be restarted by `rails restart` command.
plugin :tmp_restart
......@@ -62,10 +62,10 @@ RSpec.describe Statistics::Pass::Unit, type: :model do
end
end
context "the member is a collaborating medicosocial org" do
context "the member is a medicosocial org" do
before do
mg = create :member_group
Settings.instance.reload.platform_collaborating_medicosocial_orgs << mg
Settings.instance.reload.platform_medicosocial_orgs << mg
club = create :member
collaborating_medicosocial_org = create :member, member_groups: [mg]
perf1 = create :performance, member: club
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment