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