Asset-Tracker/timcharper-calendar_date_select-d3b2b8c/spec/spec_helper.rb
2011-06-14 18:08:28 -07:00

26 lines
506 B
Ruby
Executable File

require "rubygems"
require 'spec'
gem 'activesupport', "2.3.4"
gem 'actionpack', ">= 2.2.0"
require 'active_support'
require 'action_pack'
require 'action_controller'
require 'action_view'
require 'ostruct'
ActionView::Helpers::InstanceTag.class_eval do
class << self; alias new_with_backwards_compatibility new; end
end
$: << (File.dirname(__FILE__) + "/../lib")
require "calendar_date_select"
class String
def to_regexp
is_a?(Regexp) ? self : Regexp.new(Regexp.escape(self.to_s))
end
end