Sha256: 3234601cb200e2a132c1e614791e6172b5777b22e98b4a4f712e458862c773a3
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 Bytes
Contents
shared_examples_for "a persistable configuration" do let(:klass) { described_class } let(:attributes) do { "whitelist" => ["FooLicense", "BarLicense"], "ignore_groups" => [:test, :development] } end describe '.new' do subject { klass.new(attributes) } context "with known attributes" do it "should set the all of the attributes on the instance" do attributes.each do |key, value| subject.send("#{key}").should == value end end end end describe "#whitelist" do it "should default to an empty array" do klass.new.whitelist.should == [] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-0.7.3 | spec/support/shared_examples/persistence/configuration.rb |
license_finder-0.7.1 | spec/support/shared_examples/persistence/configuration.rb |