lib/rspeckled/plugins/authentication.rb in rspeckled-0.0.30 vs lib/rspeckled/plugins/authentication.rb in rspeckled-0.0.31
- old
+ new
@@ -1,5 +1,6 @@
# frozen_string_literal: true
+
RSpec.configure do |config|
config.around(:each, :mock_auth => lambda { |v| !!v }) do |example|
options = example.metadata[:mock_auth]
authentication_type = if options.is_a?(Hash) && options[:type]