Sha256: 71c29b36f96c4de04e17f7caa1f6a5dd098ccf23afe2df8861d6c97644782725
Contents?: true
Size: 544 Bytes
Versions: 97
Compression:
Stored size: 544 Bytes
Contents
require "spec_helper" require "foreman/helpers" describe "Foreman::Helpers" do before do module Foo class Bar; end end end after do Object.send(:remove_const, :Foo) end subject { o = Object.new; o.extend(Foreman::Helpers); o } it "should classify words" do subject.classify("foo").should == "Foo" subject.classify("foo-bar").should == "FooBar" end it "should constantize words" do subject.constantize("Object").should == Object subject.constantize("Foo::Bar").should == Foo::Bar end end
Version data entries
97 entries across 97 versions & 3 rubygems