Sha256: f1d99ffccb1f7826c566aa9f12941386c1f3456da7798b0e83ef486a01ec02fb
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
require 'spec_helper' describe Tarquinn::Config do let(:subject) { described_class.new(:redirect) } describe '#add_redirection_rules' do context 'when not passing a block' do it_behaves_like 'a method that adds a redirection rule', Tarquinn::Condition::MethodCaller do let(:call_method) { subject.add_redirection_rules(:methods) } end end context 'when passing only a block' do it_behaves_like 'a method that adds a redirection rule', Tarquinn::Condition::ProcRunner do let(:call_method) { subject.add_redirection_rules { true } } end end end describe '#add_skip_rules' do context 'when not passing a block' do it_behaves_like 'a method that adds a skip rule', Tarquinn::Condition::MethodCaller do let(:call_method) { subject.add_skip_rules(:methods) } end end context 'when passing only a block' do it_behaves_like 'a method that adds a skip rule', Tarquinn::Condition::ProcRunner do let(:call_method) { subject.add_skip_rules { true } } end end end describe '#add_skip_action' do it_behaves_like 'a method that adds a skip rule', Tarquinn::Condition::ActionChecker do let(:call_method) { subject.add_skip_action(:methods) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tarquinn-0.2.0 | spec/lib/tarquinn/config_spec.rb |
tarquinn-0.1.0 | spec/lib/tarquinn/config_spec.rb |