Permalink
Browse files

add some test guards for rbx

  • Loading branch information...
1 parent 4ede00c commit d269bf5a1efe0e2d51270544f4223ca180efd6d4 @rkh rkh committed Feb 21, 2011
Showing with 11 additions and 2 deletions.
  1. +4 −2 Gemfile
  2. +2 −0 test/helper.rb
  3. +5 −0 test/routing_test.rb
View
6 Gemfile
@@ -6,7 +6,9 @@
#
# If you have issues with on gem: `bundle install --without-coffee-script`.
-source :rubygems
+RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
+
+source :rubygems unless ENV['QUICK']
gemspec
gem 'rake'
@@ -17,7 +19,7 @@ gem 'builder', :group => 'builder'
gem 'erubis', :group => 'erubis'
gem 'less', :group => 'less'
gem 'liquid', :group => 'liquid'
-gem 'RedCloth', :group => 'redcloth'
+gem 'RedCloth', :group => 'redcloth' unless RUBY_ENGINE == "rbx"
gem 'nokogiri', :group => 'nokogiri'
gem 'slim', :group => 'slim'
View
2 test/helper.rb
@@ -1,6 +1,8 @@
ENV['RACK_ENV'] = 'test'
Encoding.default_external = "UTF-8" if defined? Encoding
+RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
+
begin
require 'rack'
rescue LoadError
View
5 test/routing_test.rb
@@ -778,6 +778,11 @@ class RoutingTest < Test::Unit::TestCase
end
it 'raises an ArgumentError with block arity > 1 and too many values' do
+ if RUBY_ENGINE == "rbx"
+ $stderr.puts "\npending test: #{__method__}, #{__FILE__}:#{__LINE__} "
+ next
+ end
+
mock_app {
get '/:foo/:bar/:baz' do |foo, bar|
'quux'

0 comments on commit d269bf5

Please sign in to comment.