Sha256: 39c89a3fa2fd04029998727ee2eadd04aaee6a1e8a04f815712a44cb179d2388
Contents?: true
Size: 882 Bytes
Versions: 1
Compression:
Stored size: 882 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe FeatureRich::GroupFeature do before do @group = FeatureRich::GroupFeature.new(:a_group) end it "should define instance attribute accessor :sets" do @group.should respond_to(:sets) @group.should respond_to(:sets=) @group.sets.should == Array.new end it "should respond to #configure" do @group.should respond_to(:configure).with(0) lambda do @group.configure do feature :black_color feature :full_face end end.should_not raise_exception end it "should respond to #subset?" do @group.should respond_to(:subset?) @group.configure do feature :red feature :blue feature :green end @group.subset?([:red, :green, :blue, :orange]).should be_true @group.subset?([:red, :black]).should be_false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feature-rich-0.2.0 | spec/group_spec.rb |