Sha256: bbba6b8d1693713a87c3bdb09543656281825bf1f7ea3dd598d0c008c5b20af7

Contents?: true

Size: 640 Bytes

Versions: 26

Compression:

Stored size: 640 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

class TestClass
  include Configurable
end

describe "configurable" do
  before(:each) do
    @tc = TestClass.new
  end
  it "should set the name as frank" do
    @tc.name.should == nil
    @tc.configure({:name => "frank"})
    @tc.name.should == "frank"
  end
  it "should reset the name after it's been set" do
    @tc.configure({:name => "frank"})
    @tc.configure({:name => "timmy"})
    @tc.name.should == "timmy"
  end
  it "should be able to reconfigure itself" do
    @tc.configure(:name => "walter")
    @tc.reconfigure(:name => "dewey")
    @tc.name.should == "dewey"
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
auser-poolparty-0.2.15 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.16 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.20 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.21 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.22 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.23 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.24 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.25 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.26 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.3 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.35 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.36 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.37 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.38 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.39 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.4 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.40 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.41 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.42 spec/poolparty/modules/configurable_spec.rb
auser-poolparty-0.2.44 spec/poolparty/modules/configurable_spec.rb