Sha256: 08640706c65e7c19e8070b36e477fad8c75eca9cd1b2bffd17844c4a1c94d7a9

Contents?: true

Size: 639 Bytes

Versions: 7

Compression:

Stored size: 639 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

7 entries across 7 versions & 2 rubygems

Version Path
rio-0.6.0 test/tc/base.rb
wishdev-rio-0.4.3.1 test/tc/base.rb
rio-0.5.1 test/tc/base.rb
rio-0.3.9 test/tc/base.rb
rio-0.4.2 test/tc/base.rb
rio-0.4.1 test/tc/base.rb
rio-0.4.0 test/tc/base.rb