require "pathname" begin require "bacon" rescue LoadError require "rubygems" require "bacon" end begin if (local_path = Pathname.new(__FILE__).dirname.join("..", "lib", "<%= @options[:lib_name_u] %>.rb")).file? require local_path else require "<%= @options[:lib_name_u] %>" end rescue LoadError require "rubygems" require "<%= @options[:lib_name_u] %>" end Bacon.summary_on_exit describe "Spec Helper" do it "Should bring our library namespace in" do <%= @options[:lib_name] %>.should == <%= @options[:lib_name] %> end end