Sha256: c40aaa7d300f79ac10083f882f83aea222c6adaed023897b73bf85ee403b0998
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
require "spec_helper" describe Detour::Configuration do describe ".define_group_for_class" do let(:block) { Proc.new {} } before do subject.send :define_group_for_class, "User", "user_id_1", &block end it "defines a group for the given class" do subject.defined_groups["User"].should eq({ "user_id_1" => block }) end end describe ".define_{klass}_group" do let(:block) { Proc.new {} } it "defines a group for the given class" do subject.should_receive(:define_group_for_class).with("User", :id_is_1) subject.define_user_group :id_is_1, block end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
detour-0.0.3 | spec/lib/detour/configuration_spec.rb |
detour-0.0.2 | spec/lib/detour/configuration_spec.rb |