Sha256: dd83e4e15a0f7bb920f35e5e05caf66e783e1b8d67cfd9a6ca5ad0aa7bdfa645
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
require 'enabler' describe Enabler::Config do let(:processor) { Proc.new { true } } subject { Enabler::Config.instance } describe "rule" do it "adds the rule" do expect { subject.rule :dance, &processor }.to change { subject.rules.length }.from(0).to 1 end end describe "after_enabling" do before { subject.after_enabling :dance, &processor } specify { subject.after_enablings[:dance].should == processor } end describe "after_disabling" do before { subject.after_disabling :dance, &processor } specify { subject.after_disablings[:dance].should == processor } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enabler-0.0.5 | spec/enabler/config_spec.rb |