]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/i18n_data/spec/spec_helper.rb
cleanup
[rails.git] / vendor / plugins / i18n_data / spec / spec_helper.rb
1 # ---- requirements
2 require 'rubygems'
3 require 'activesupport'
4 require 'spec'
5 require 'mocha'
6
7 $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
8 require 'i18n_data'
9
10 # ---- bugfix
11 #`exit?': undefined method `run?' for Test::Unit:Module (NoMethodError)
12 #can be solved with require test/unit but this will result in extra test-output
13 module Test
14   module Unit
15     def self.run?
16       true
17     end
18   end
19 end
20
21
22 # ---- rspec
23 Spec::Runner.configure do |config|
24   config.mock_with :mocha
25 end
26
27 # ---- Helpers
28 def pending_it(text,&block)
29   it text do
30     pending(&block)
31   end
32 end