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

Version Path
configurability-2.0.2 lib/configurability/behavior.rb
configurability-2.0.1 lib/configurability/behavior.rb
configurability-2.0.0 lib/configurability/behavior.rb
configurability-1.2.0 lib/configurability/behavior.rb
configurability-1.1.0 lib/configurability/behavior.rb
configurability-1.0.10 lib/configurability/behavior.rb
configurability-1.0.9 lib/configurability/behavior.rb
configurability-1.0.8 lib/configurability/behavior.rb
configurability-1.0.7 lib/configurability/behavior.rb
configurability-1.0.6 lib/configurability/behavior.rb
configurability-1.0.5 lib/configurability/behavior.rb
configurability-1.0.4 lib/configurability/behavior.rb
configurability-1.0.3 lib/configurability/behavior.rb
configurability-1.0.2 lib/configurability/behavior.rb