spec/fallback_spec.rb in flipper-fallback-0.0.2 vs spec/fallback_spec.rb in flipper-fallback-0.1.0

- old
+ new

@@ -33,10 +33,15 @@ end Redis.new(options) } - subject { described_class.new(Flipper::Adapters::Redis.new(client)) } + let(:on_error) do + lambda do |error, primary_adapter, fallback_adapter| + # noop + end + end + subject { described_class.new(Flipper::Adapters::Redis.new(client), { :on_error => on_error, :timeout => 0.1 }) } it_should_behave_like 'a flipper adapter' end end