Sha256: 5e1318acde8ec95a92456a26e34c357d8817a667ccb09ad75508de77b9c88ccb

Contents?: true

Size: 638 Bytes

Versions: 3

Compression:

Stored size: 638 Bytes

Contents

#!/usr/local/bin/ruby
if $0 == __FILE__
  Dir.chdir File.dirname(__FILE__)+'/../'
  $:.unshift File.expand_path('../lib/')
end

require 'rio'
require 'tc/testcase'

class TC_base < Test::RIO::TestCase
  @@once = false
  def self.once
    @@once = true
  end
  def setup
    super
    self.class.once unless @@once
  end
  def test_basic
    r = rio('zippy',{:base => '/'})
    assert_equal('/zippy',r.abs.path)
  end
  def test_2args
    r = rio('tmp','zippy',{:base => '/'})
    assert_equal('/tmp/zippy',r.abs.path)
  end
  def test_longer_base
    r = rio('zippy',{:base => '/tmp'})
    assert_equal('/tmp/zippy',r.abs.path)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rio-0.3.8 test/tc/base.rb
rio-0.3.6 test/tc/base.rb
rio-0.3.7 test/tc/base.rb