Skip to content

Commit

Permalink
* test/rss/test_*: do $: trick while searching a module in the current
Browse files Browse the repository at this point in the history
          directory.

        * test/xsd/test_xmlschemaparser.rb, test/wsdl/test_emptycomplextype.rb,
          test/soap/helloworld/test_helloworld.rb,
          test/soap/calc/{test_calc.rb,test_calc2.rb}: do File.expand_path
          before using __FILE__.

        * test/yaml/test_yaml.rb: assert_equals -> assert_equal.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nahi committed Jan 29, 2004
1 parent 8774081 commit a84fc19
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 6 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
Thu Jan 29 11:32:14 2004 NAKAMURA, Hiroshi <[email protected]>

* test/rss/test_*: do $: trick while searching a module in the current
directory.

* test/xsd/test_xmlschemaparser.rb, test/wsdl/test_emptycomplextype.rb,
test/soap/helloworld/test_helloworld.rb,
test/soap/calc/{test_calc.rb,test_calc2.rb}: do File.expand_path
before using __FILE__.

* test/yaml/test_yaml.rb: assert_equals -> assert_equal.

Thu Jan 29 01:56:02 2004 why the lucky stiff <[email protected]>

* ext/syck/rubyext.c: usec round-tripping skew. [ruby-core:2305]
Expand Down
3 changes: 3 additions & 0 deletions test/rss/test_1.0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
require "rexml/document"

require "rss/1.0"
dir = File.dirname(File.expand_path(__FILE__))
$:.push(dir)
require "common"
$:.delete(dir)

class TestCore < Test::Unit::TestCase

Expand Down
3 changes: 3 additions & 0 deletions test/rss/test_accessor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
require "rss/parser"
require "rss/1.0"
require "rss/2.0"
dir = File.dirname(File.expand_path(__FILE__))
$:.push(dir)
require "common"
$:.delete(dir)

class TestAccessor < Test::Unit::TestCase
include TestRSSMixin
Expand Down
3 changes: 3 additions & 0 deletions test/rss/test_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

require "rss/parser"
require "rss/content"
dir = File.dirname(File.expand_path(__FILE__))
$:.push(dir)
require "common"
$:.delete(dir)

class TestContent < Test::Unit::TestCase
include TestRSSMixin
Expand Down
3 changes: 3 additions & 0 deletions test/rss/test_dublincore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

require "rss/parser"
require "rss/dublincore"
dir = File.dirname(File.expand_path(__FILE__))
$:.push(dir)
require "common"
$:.delete(dir)

class TestDublinCore < Test::Unit::TestCase
include TestRSSMixin
Expand Down
3 changes: 3 additions & 0 deletions test/rss/test_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
require "test/unit"
require "rss/parser"
require "rss/1.0"
dir = File.dirname(File.expand_path(__FILE__))
$:.push(dir)
require "common"
$:.delete(dir)

class TestParser < Test::Unit::TestCase
include TestRSSMixin
Expand Down
3 changes: 3 additions & 0 deletions test/rss/test_syndication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

require "rss/parser"
require "rss/syndication"
dir = File.dirname(File.expand_path(__FILE__))
$:.push(dir)
require "common"
$:.delete(dir)

class TestSyndication < Test::Unit::TestCase
include TestRSSMixin
Expand Down
3 changes: 3 additions & 0 deletions test/rss/test_trackback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

require "rss/parser"
require "rss/trackback"
dir = File.dirname(File.expand_path(__FILE__))
$:.push(dir)
require "common"
$:.delete(dir)

class TestTrackBack < Test::Unit::TestCase
include TestRSSMixin
Expand Down
2 changes: 1 addition & 1 deletion test/soap/calc/test_calc.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'test/unit'
require 'soap/rpc/driver'

dir = File.dirname(__FILE__)
dir = File.dirname(File.expand_path(__FILE__))
$:.push(dir)
require 'server.rb'
$:.delete(dir)
Expand Down
2 changes: 1 addition & 1 deletion test/soap/calc/test_calc2.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'test/unit'
require 'soap/rpc/driver'

dir = File.dirname(__FILE__)
dir = File.dirname(File.expand_path(__FILE__))
$:.push(dir)
require 'server2.rb'
$:.delete(dir)
Expand Down
2 changes: 1 addition & 1 deletion test/soap/helloworld/test_helloworld.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'test/unit'
require 'soap/rpc/driver'

dir = File.dirname(__FILE__)
dir = File.dirname(File.expand_path(__FILE__))
$:.push(dir)
require 'hw_s.rb'
$:.delete(dir)
Expand Down
2 changes: 1 addition & 1 deletion test/wsdl/test_emptycomplextype.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module WSDL

class TestWSDL < Test::Unit::TestCase
def setup
@file = File.join(File.dirname(__FILE__), 'emptycomplextype.wsdl')
@file = File.join(File.dirname(File.expand_path(__FILE__)), 'emptycomplextype.wsdl')
end

def test_wsdl
Expand Down
2 changes: 1 addition & 1 deletion test/xsd/test_xmlschemaparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module XSD

class TestXMLSchemaParser < Test::Unit::TestCase
def setup
@file = File.join(File.dirname(__FILE__), 'xmlschema.xml')
@file = File.join(File.dirname(File.expand_path(__FILE__)), 'xmlschema.xml')
end

def test_wsdl
Expand Down
2 changes: 1 addition & 1 deletion test/yaml/test_yaml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ def test_time_now_cycle
require 'yaml'
t = Time.now
5.times do
assert_equals( t, YAML.load( YAML.dump( t ) ) )
assert_equal( t, YAML.load( YAML.dump( t ) ) )
end
end

Expand Down

0 comments on commit a84fc19

Please sign in to comment.