require 'spec_helper' module Alf describe Support, "class_name" do let(:tools){ Object.new.extend(Support) } it "should work on top-level namespaces" do tools.class_name(Alf).should eq(:Alf) end it "should work on non top-level namespaces" do tools.class_name(Alf::Support).should eq(:Support) end end end