require 'spec_helper' describe Outpost::Helpers::Naming do describe "::to_class" do it "turns the controller param into its corresponding class" do stub_const("Person", nil) Outpost::Helpers::Naming.to_class("admin/people").should eq Person end end end