require 'spec_helper.rb' require 'tools.rb' describe "Tools" do describe "- getClass" do it "should not call eval" do lambda{getClass("String")}.should_not cross(:instance_eval) end it "should find the correct class" do getClass("Mutex").should == Mutex end end end