Sha256: 2e07940b92d8812233ed35b89862a6cd79d6f330b1d86934e08f68335a7e12f5

Contents?: true

Size: 379 Bytes

Versions: 5

Compression:

Stored size: 379 Bytes

Contents

require "#{File.dirname(__FILE__)}/../helpers.rb"
 
describe "Configuration attributes" do
  
  class Basic < Waves::Configurations::Base; end
  
  it "can be declared by developers" do
    Basic.attribute :smurf
    Basic.smurf("smurfy") 
    Basic.smurf.should == "smurfy"
  end
  
  
  it "must be declared before use" do
    Basic.should.not.respond_to :gnome
  end
  
end
 

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
waves-edge-2009.03.10.13.14 test/runtime/configurations.rb
waves-0.9.3 test/runtime/configurations.rb
waves-0.9.2 test/runtime/configurations.rb
waves-0.9.1 test/runtime/configurations.rb
waves-0.9.0 test/runtime/configurations.rb