Sha256: 042425778946dfaf1af6f4b683c65fb07f0397fb5bbd53890c6506cb7c3891a9
Contents?: true
Size: 498 Bytes
Versions: 14
Compression:
Stored size: 498 Bytes
Contents
#!/usr/bin/env ruby require 'configurability' require 'rspec' share_examples_for "an object with Configurability" do let( :config ) do described_class end it "is extended with Configurability" do Configurability.configurable_objects.should include( self.config ) end it "has a Symbol config key" do self.config.config_key.should be_a( Symbol ) end it "has a config key that is a reasonable section name" do self.config.config_key.to_s.should =~ /^[a-z][a-z0-9]*$/i end end
Version data entries
14 entries across 14 versions & 1 rubygems