1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

add some test guards for rbx

This commit is contained in:
Konstantin Haase 2011-02-21 11:54:26 +01:00
parent 4ede00c932
commit d269bf5a1e
3 changed files with 11 additions and 2 deletions

View file

@ -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 file

@ -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 file

@ -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'