Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add some test guards for rbx

  • Loading branch information...
commit d269bf5a1efe0e2d51270544f4223ca180efd6d4 1 parent 4ede00c
Konstantin Haase rkh authored
Showing with 11 additions and 2 deletions.
  1. +4 −2 Gemfile
  2. +2 −0  test/helper.rb
  3. +5 −0 test/routing_test.rb
6 Gemfile
View
@@ -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'
2  test/helper.rb
View
@@ -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
5 test/routing_test.rb
View
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.