]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/plugins/i18n_data/spec/spec_helper.rb
Added localized language names with plugin from http://github.com/grosser/i18n_data...
[rails.git] / vendor / plugins / i18n_data / spec / spec_helper.rb
diff --git a/vendor/plugins/i18n_data/spec/spec_helper.rb b/vendor/plugins/i18n_data/spec/spec_helper.rb
new file mode 100644 (file)
index 0000000..8156573
--- /dev/null
@@ -0,0 +1,32 @@
+# ---- requirements
+require 'rubygems'
+require 'activesupport'
+require 'spec'
+require 'mocha'
+
+$LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
+require 'i18n_data'
+
+# ---- bugfix
+#`exit?': undefined method `run?' for Test::Unit:Module (NoMethodError)
+#can be solved with require test/unit but this will result in extra test-output
+module Test
+  module Unit
+    def self.run?
+      true
+    end
+  end
+end
+
+
+# ---- rspec
+Spec::Runner.configure do |config|
+  config.mock_with :mocha
+end
+
+# ---- Helpers
+def pending_it(text,&block)
+  it text do
+    pending(&block)
+  end
+end
\ No newline at end of file