Sha256: 45831cc4aee937d6437f5d0aa84443249807cde4b56c00ff8067fcfad3c80d89
Contents?: true
Size: 770 Bytes
Versions: 25
Compression:
Stored size: 770 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.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 it "should send an array if two arguments are given" do @tc.configure({:name => ["array", "ishere"]}) @tc.name.should == ["array", "ishere"] end end
Version data entries
25 entries across 25 versions & 2 rubygems