spec/dummy/strategies/dummy_strategy.rb in auth_strategist-0.6.0 vs spec/dummy/strategies/dummy_strategy.rb in auth_strategist-0.7.0
- old
+ new
@@ -1,9 +1,11 @@
+# frozen_string_literal: true
+
class DummyStrategy
include AuthStrategist::StrategyInterface
define_components :dummy_component
- def authorize!
- dummy_component
+ def authorized?
+ dummy_component == :ok
end
end