Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed require lines in rbx-specific spec files.

  • Loading branch information...
commit 752da7e4c1d18670412c8e2046559a09b9284954 1 parent d3203eb
@brixen brixen authored
Showing with 343 additions and 343 deletions.
  1. +1 −1  spec/build/dependencygrapher/print_dependencies_spec.rb
  2. +1 −1  spec/build/dependencygrapher/process_spec.rb
  3. +1 −1  spec/compiler/alias_spec.rb
  4. +1 −1  spec/compiler/and_spec.rb
  5. +1 −1  spec/compiler/array_spec.rb
  6. +1 −1  spec/compiler/attrasgn_spec.rb
  7. +1 −1  spec/compiler/back_ref_spec.rb
  8. +1 −1  spec/compiler/call_spec.rb
  9. +1 −1  spec/compiler/case_spec.rb
  10. +1 −1  spec/compiler/cdecl_spec.rb
  11. +1 −1  spec/compiler/class_spec.rb
  12. +1 −1  spec/compiler/colon2_spec.rb
  13. +1 −1  spec/compiler/colon3_spec.rb
  14. +1 −1  spec/compiler/const_spec.rb
  15. +1 −1  spec/compiler/cvar_spec.rb
  16. +1 −1  spec/compiler/cvasgn_spec.rb
  17. +1 −1  spec/compiler/cvdecl_spec.rb
  18. +1 −1  spec/compiler/defined_spec.rb
  19. +1 −1  spec/compiler/defn_spec.rb
  20. +1 −1  spec/compiler/defs_spec.rb
  21. +1 −1  spec/compiler/dot2_spec.rb
  22. +1 −1  spec/compiler/dot3_spec.rb
  23. +1 −1  spec/compiler/dregx_spec.rb
  24. +4 −4 spec/compiler/dstr_spec.rb
  25. +1 −1  spec/compiler/dsym_spec.rb
  26. +1 −1  spec/compiler/dxstr_spec.rb
  27. +1 −1  spec/compiler/ensure_spec.rb
  28. +1 −1  spec/compiler/false_spec.rb
  29. +1 −1  spec/compiler/flip2_spec.rb
  30. +1 −1  spec/compiler/flip3_spec.rb
  31. +1 −1  spec/compiler/for_spec.rb
  32. +1 −1  spec/compiler/gasgn_spec.rb
  33. +1 −1  spec/compiler/gvar_spec.rb
  34. +1 −1  spec/compiler/hash_spec.rb
  35. +1 −1  spec/compiler/iasgn_spec.rb
  36. +1 −1  spec/compiler/if_spec.rb
  37. +1 −1  spec/compiler/iter_spec.rb
  38. +1 −1  spec/compiler/lasgn_spec.rb
  39. +1 −1  spec/compiler/lit_spec.rb
  40. +1 −1  spec/compiler/masgn_spec.rb
  41. +1 −1  spec/compiler/match2_spec.rb
  42. +1 −1  spec/compiler/match3_spec.rb
  43. +1 −1  spec/compiler/match_spec.rb
  44. +1 −1  spec/compiler/module_spec.rb
  45. +1 −1  spec/compiler/nil_spec.rb
  46. +1 −1  spec/compiler/not_spec.rb
  47. +1 −1  spec/compiler/nth_ref_spec.rb
  48. +1 −1  spec/compiler/op_asgn_spec.rb
  49. +1 −1  spec/compiler/or_spec.rb
  50. +1 −1  spec/compiler/postexe_spec.rb
  51. +1 −1  spec/compiler/regex_spec.rb
  52. +1 −1  spec/compiler/rescue_spec.rb
  53. +1 −1  spec/compiler/return_spec.rb
  54. +1 −1  spec/compiler/sclass_spec.rb
  55. +1 −1  spec/compiler/str_spec.rb
  56. +1 −1  spec/compiler/super_spec.rb
  57. +1 −1  spec/compiler/transforms/assembly_spec.rb
  58. +1 −1  spec/compiler/transforms/block_given_spec.rb
  59. +1 −1  spec/compiler/transforms/fast_coerce_spec.rb
  60. +1 −1  spec/compiler/transforms/fast_math_spec.rb
  61. +1 −1  spec/compiler/transforms/fast_new_spec.rb
  62. +1 −1  spec/compiler/transforms/fast_system_spec.rb
  63. +1 −1  spec/compiler/transforms/invoke_primitive_spec.rb
  64. +1 −1  spec/compiler/transforms/kernel_methods_spec.rb
  65. +1 −1  spec/compiler/transforms/loop_spec.rb
  66. +1 −1  spec/compiler/transforms/primitive_spec.rb
  67. +1 −1  spec/compiler/transforms/privately_spec.rb
  68. +1 −1  spec/compiler/true_spec.rb
  69. +1 −1  spec/compiler/undef_spec.rb
  70. +1 −1  spec/compiler/until_spec.rb
  71. +1 −1  spec/compiler/valias_spec.rb
  72. +1 −1  spec/compiler/while_spec.rb
  73. +1 −1  spec/compiler/xstr_spec.rb
  74. +1 −1  spec/compiler/yield_spec.rb
  75. +1 −1  spec/compiler/zsuper_spec.rb
  76. +2 −2 spec/core/ar/delete_spec.rb
  77. +2 −2 spec/core/ar/extract_spec.rb
  78. +2 −2 spec/core/ar/list_spec.rb
  79. +2 −2 spec/core/ar/replace_spec.rb
  80. +2 −2 spec/core/ar/write_spec.rb
  81. +1 −1  spec/core/array/identitymap/delete_spec.rb
  82. +1 −1  spec/core/array/identitymap/include_spec.rb
  83. +1 −1  spec/core/array/identitymap/load_spec.rb
  84. +1 −1  spec/core/array/identitymap/size_spec.rb
  85. +1 −1  spec/core/array/identitymap/to_array_spec.rb
  86. +1 −1  spec/core/array/iterator/allocate_spec.rb
  87. +1 −1  spec/core/array/iterator/at_spec.rb
  88. +1 −1  spec/core/array/iterator/bounds_spec.rb
  89. +1 −1  spec/core/array/iterator/index_spec.rb
  90. +1 −1  spec/core/array/iterator/item_spec.rb
  91. +1 −1  spec/core/array/iterator/new_spec.rb
  92. +1 −1  spec/core/array/iterator/next_spec.rb
  93. +1 −1  spec/core/array/iterator/rnext_spec.rb
  94. +1 −1  spec/core/array/to_iter_spec.rb
  95. +1 −1  spec/core/array/to_reverse_iter_spec.rb
  96. +1 −1  spec/core/array/to_tuple_spec.rb
  97. +1 −1  spec/core/backtrace/backtrace_spec.rb
  98. +1 −1  spec/core/backtrace/color_from_loc_spec.rb
  99. +1 −1  spec/core/backtrace/each_spec.rb
  100. +1 −1  spec/core/backtrace/element_reference_spec.rb
  101. +1 −1  spec/core/backtrace/eval_color_spec.rb
  102. +1 −1  spec/core/backtrace/fill_from_spec.rb
  103. +1 −1  spec/core/backtrace/first_color_spec.rb
  104. +1 −1  spec/core/backtrace/frames_spec.rb
  105. +1 −1  spec/core/backtrace/join_spec.rb
  106. +1 −1  spec/core/backtrace/kernel_color_spec.rb
  107. +1 −1  spec/core/backtrace/new_spec.rb
  108. +1 −1  spec/core/backtrace/reverse_spec.rb
  109. +1 −1  spec/core/backtrace/show_spec.rb
  110. +1 −1  spec/core/backtrace/to_mri_spec.rb
  111. +1 −1  spec/core/backtrace/to_s_spec.rb
  112. +1 −1  spec/core/backtrace/top_context_spec.rb
  113. +1 −1  spec/core/bignum/bignum_spec.rb
  114. +1 −1  spec/core/bignum/coerce_spec.rb
  115. +2 −2 spec/core/breakpoint/calculate_next_breakpoint_spec.rb
  116. +2 −2 spec/core/breakpoint/calculate_target_breakpoint_spec.rb
  117. +2 −2 spec/core/breakpoint/initialize_spec.rb
  118. +2 −2 spec/core/breakpoint/install_spec.rb
  119. +2 −2 spec/core/breakpoint/remove_spec.rb
  120. +2 −2 spec/core/breakpoint/wait_for_breakpoint_spec.rb
  121. +1 −1  spec/core/bytearray/element_reference_spec.rb
  122. +1 −1  spec/core/bytearray/element_set_spec.rb
  123. +1 −1  spec/core/bytearray/new_spec.rb
  124. +1 −1  spec/core/class/name_spec.rb
  125. +3 −3 spec/core/codeloader/require_compiled_spec.rb
  126. +1 −1  spec/core/ctype/isalnum_spec.rb
  127. +1 −1  spec/core/ctype/isctrl_spec.rb
  128. +1 −1  spec/core/ctype/isdigit_spec.rb
  129. +1 −1  spec/core/ctype/islower_spec.rb
  130. +1 −1  spec/core/ctype/isspace_spec.rb
  131. +1 −1  spec/core/ctype/isupper_spec.rb
  132. +1 −1  spec/core/ctype/tolower_spec.rb
  133. +1 −1  spec/core/ctype/toprint_spec.rb
  134. +1 −1  spec/core/ctype/toupper_spec.rb
  135. +1 −1  spec/core/ffi/add_typedef_spec.rb
  136. +1 −1  spec/core/ffi/config_hash_spec.rb
  137. +1 −1  spec/core/ffi/config_spec.rb
  138. +1 −1  spec/core/ffi/find_type_spec.rb
  139. +1 −1  spec/core/ffi/library/attach_foreign.rb
  140. +1 −1  spec/core/ffi/library/attach_function_spec.rb
  141. +1 −1  spec/core/ffi/library/ffi_lib_spec.rb
  142. +1 −1  spec/core/ffi/library/native_function.rb
  143. +1 −1  spec/core/ffi/memorypointer/address_spec.rb
  144. +1 −1  spec/core/ffi/memorypointer/autorelease_spec.rb
  145. +1 −1  spec/core/ffi/memorypointer/clone_spec.rb
  146. +1 −1  spec/core/ffi/memorypointer/dup_spec.rb
  147. +1 −1  spec/core/ffi/memorypointer/element_reference_spec.rb
  148. +1 −1  spec/core/ffi/memorypointer/free_spec.rb
  149. +1 −1  spec/core/ffi/memorypointer/get_at_offset_spec.rb
  150. +1 −1  spec/core/ffi/memorypointer/inspect_spec.rb
  151. +1 −1  spec/core/ffi/memorypointer/new_spec.rb
  152. +1 −1  spec/core/ffi/memorypointer/null_spec.rb
  153. +1 −1  spec/core/ffi/memorypointer/plus_spec.rb
  154. +1 −1  spec/core/ffi/memorypointer/read_array_of_int_spec.rb
  155. +1 −1  spec/core/ffi/memorypointer/read_array_of_long_spec.rb
  156. +1 −1  spec/core/ffi/memorypointer/read_array_of_type_spec.rb
  157. +1 −1  spec/core/ffi/memorypointer/read_double_spec.rb
  158. +1 −1  spec/core/ffi/memorypointer/read_float_spec.rb
  159. +1 −1  spec/core/ffi/memorypointer/read_int_spec.rb
  160. +1 −1  spec/core/ffi/memorypointer/read_long_spec.rb
  161. +1 −1  spec/core/ffi/memorypointer/read_pointer_spec.rb
  162. +1 −1  spec/core/ffi/memorypointer/read_string_length_spec.rb
  163. +1 −1  spec/core/ffi/memorypointer/read_string_spec.rb
  164. +1 −1  spec/core/ffi/memorypointer/read_string_to_null_spec.rb
  165. +1 −1  spec/core/ffi/memorypointer/set_at_offset_spec.rb
  166. +1 −1  spec/core/ffi/memorypointer/total_spec.rb
  167. +1 −1  spec/core/ffi/memorypointer/type_size_spec.rb
  168. +1 −1  spec/core/ffi/memorypointer/write_array_of_int_spec.rb
  169. +1 −1  spec/core/ffi/memorypointer/write_array_of_long_spec.rb
  170. +1 −1  spec/core/ffi/memorypointer/write_array_of_type_spec.rb
  171. +1 −1  spec/core/ffi/memorypointer/write_double_spec.rb
  172. +1 −1  spec/core/ffi/memorypointer/write_float_spec.rb
  173. +1 −1  spec/core/ffi/memorypointer/write_int_spec.rb
  174. +1 −1  spec/core/ffi/memorypointer/write_long_spec.rb
  175. +1 −1  spec/core/ffi/memorypointer/write_string_length_spec.rb
  176. +1 −1  spec/core/ffi/memorypointer/write_string_spec.rb
  177. +1 −1  spec/core/ffi/size_to_type_spec.rb
  178. +1 −1  spec/core/ffi/struct/config_spec.rb
  179. +1 −1  spec/core/ffi/struct/element_reference_spec.rb
  180. +1 −1  spec/core/ffi/struct/element_set_spec.rb
  181. +1 −1  spec/core/ffi/struct/free_spec.rb
  182. +1 −1  spec/core/ffi/struct/initialize_copy_spec.rb
  183. +1 −1  spec/core/ffi/struct/layout_spec.rb
  184. +1 −1  spec/core/ffi/struct/new_spec.rb
  185. +1 −1  spec/core/ffi/struct/pointer_spec.rb
  186. +1 −1  spec/core/ffi/struct/size_spec.rb
  187. +1 −1  spec/core/ffi/type_size_spec.rb
  188. +1 −1  spec/core/hash/allocate_spec.rb
  189. +1 −1  spec/core/hash/delete_spec.rb
  190. +1 −1  spec/core/hash/entry/key_hash_spec.rb
  191. +1 −1  spec/core/hash/entry/key_spec.rb
  192. +1 −1  spec/core/hash/entry/new_spec.rb
  193. +1 −1  spec/core/hash/entry/next_spec.rb
  194. +1 −1  spec/core/hash/entry/value_spec.rb
  195. +1 −1  spec/core/hash/iterator/index_spec.rb
  196. +1 −1  spec/core/hash/iterator/new_spec.rb
  197. +1 −1  spec/core/hash/iterator/next_spec.rb
  198. +1 −1  spec/core/instructionsequence/encoder/replace_instruction_spec.rb
  199. +1 −1  spec/core/integer/bits_spec.rb
  200. +1 −1  spec/core/io/buffer_spec.rb
  201. +1 −1  spec/core/kernel/Integer_spec.rb
  202. +2 −2 spec/core/kernel/StringValue_spec.rb
  203. +1 −1  spec/core/kernel/const_lookup_spec.rb
  204. +1 −1  spec/core/kernel/dup_spec.rb
  205. +4 −4 spec/core/kernel/load_spec.rb
  206. +1 −1  spec/core/kernel/rand_spec.rb
  207. +1 −1  spec/core/kernel/to_bool_spec.rb
  208. +1 −1  spec/core/kernel/type_coerce_to_spec.rb
  209. +1 −1  spec/core/kernel/type_obj_kind_of_spec.rb
  210. +1 −1  spec/core/lookuptable/allocate_spec.rb
  211. +2 −2 spec/core/lookuptable/clone_spec.rb
  212. +1 −1  spec/core/lookuptable/delete_spec.rb
  213. +2 −2 spec/core/lookuptable/dup_spec.rb
  214. +1 −1  spec/core/lookuptable/element_reference_spec.rb
  215. +1 −1  spec/core/lookuptable/element_set_spec.rb
  216. +1 −1  spec/core/lookuptable/entries_spec.rb
  217. +2 −2 spec/core/lookuptable/has_key_spec.rb
  218. +2 −2 spec/core/lookuptable/include_spec.rb
  219. +2 −2 spec/core/lookuptable/initialize_spec.rb
  220. +2 −2 spec/core/lookuptable/key_spec.rb
  221. +1 −1  spec/core/lookuptable/keys_spec.rb
  222. +2 −2 spec/core/lookuptable/member_spec.rb
  223. +1 −1  spec/core/lookuptable/new_spec.rb
  224. +1 −1  spec/core/lookuptable/size_spec.rb
  225. +1 −1  spec/core/lookuptable/values_spec.rb
  226. +2 −2 spec/core/method/parameters_spec.rb
  227. +2 −2 spec/core/method/source_location_spec.rb
  228. +2 −2 spec/core/object/class_variable_get_spec.rb
  229. +2 −2 spec/core/object/class_variable_set_spec.rb
  230. +1 −1  spec/core/options/add_spec.rb
  231. +1 −1  spec/core/options/banner_spec.rb
  232. +1 −1  spec/core/options/config_spec.rb
  233. +1 −1  spec/core/options/doc_spec.rb
  234. +1 −1  spec/core/options/help_spec.rb
  235. +1 −1  spec/core/options/match_spec.rb
  236. +1 −1  spec/core/options/new_spec.rb
  237. +1 −1  spec/core/options/on_extra_spec.rb
  238. +1 −1  spec/core/options/on_spec.rb
  239. +1 −1  spec/core/options/option/arg_spec.rb
  240. +1 −1  spec/core/options/option/block_spec.rb
  241. +1 −1  spec/core/options/option/description_spec.rb
  242. +1 −1  spec/core/options/option/long_spec.rb
  243. +1 −1  spec/core/options/option/match_spec.rb
  244. +1 −1  spec/core/options/option/new_spec.rb
  245. +1 −1  spec/core/options/option/optional_spec.rb
  246. +1 −1  spec/core/options/option/short_spec.rb
  247. +1 −1  spec/core/options/parse_spec.rb
  248. +1 −1  spec/core/options/process_spec.rb
  249. +1 −1  spec/core/options/split_spec.rb
  250. +1 −1  spec/core/options/stop_parsing_spec.rb
  251. +1 −1  spec/core/options/to_s_spec.rb
  252. +1 −1  spec/core/options/version_spec.rb
  253. +1 −1  spec/core/options/width_spec.rb
  254. +2 −2 spec/core/profiler/instrumenter/info_spec.rb
  255. +2 −2 spec/core/profiler/instrumenter/profile_spec.rb
  256. +2 −2 spec/core/profiler/instrumenter/profiler_spec.rb
  257. +2 −2 spec/core/profiler/instrumenter/show_spec.rb
  258. +1 −1  spec/core/profiler/instrumenter/start_spec.rb
  259. +1 −1  spec/core/profiler/instrumenter/stop_spec.rb
  260. +1 −1  spec/core/string/compare_substring_spec.rb
  261. +1 −1  spec/core/string/copy_from_spec.rb
  262. +1 −1  spec/core/string/count_table_spec.rb
  263. +1 −1  spec/core/string/data_spec.rb
  264. +1 −1  spec/core/string/lstrip_spec.rb
  265. +1 −1  spec/core/string/pattern_spec.rb
  266. +1 −1  spec/core/string/prefix_spec.rb
  267. +1 −1  spec/core/string/rstrip_spec.rb
  268. +1 −1  spec/core/string/splice_spec.rb
  269. +1 −1  spec/core/string/substring_spec.rb
  270. +1 −1  spec/core/string/suffix_spec.rb
  271. +1 −1  spec/core/string/tr_expand_spec.rb
  272. +2 −2 spec/core/tuple/at_spec.rb
  273. +1 −1  spec/core/tuple/constructor_spec.rb
  274. +1 −1  spec/core/tuple/dup_spec.rb
  275. +1 −1  spec/core/tuple/each_spec.rb
  276. +2 −2 spec/core/tuple/element_reference_spec.rb
  277. +2 −2 spec/core/tuple/element_set_spec.rb
  278. +1 −1  spec/core/tuple/first_spec.rb
  279. +1 −1  spec/core/tuple/inspect_spec.rb
  280. +2 −2 spec/core/tuple/join_spec.rb
  281. +2 −2 spec/core/tuple/join_upto_spec.rb
  282. +1 −1  spec/core/tuple/last_spec.rb
  283. +1 −1  spec/core/tuple/new_spec.rb
  284. +1 −1  spec/core/tuple/pattern_spec.rb
  285. +1 −1  spec/core/tuple/plus_spec.rb
  286. +2 −2 spec/core/tuple/put_spec.rb
  287. +1 −1  spec/core/tuple/shift_spec.rb
  288. +1 −1  spec/core/tuple/swap_spec.rb
  289. +1 −1  spec/core/tuple/to_a_spec.rb
  290. +2 −2 spec/core/unboundmethod/parameters_spec.rb
  291. +2 −2 spec/core/unboundmethod/source_location_spec.rb
  292. +1 −1  spec/core/vm/coerce_to_array_spec.rb
  293. +1 −1  spec/debugger/commands/backtrace_spec.rb
  294. +1 −1  spec/debugger/commands/down_frame_spec.rb
  295. +1 −1  spec/debugger/commands/help_spec.rb
  296. +1 −1  spec/debugger/commands/quit_spec.rb
  297. +1 −1  spec/debugger/commands/up_frame_spec.rb
  298. +1 −1  spec/debugger/instance_spec.rb
  299. +1 −1  spec/debugger/interface_spec.rb
  300. +1 −1  spec/debugger/output_spec.rb
Sorry, we could not display the entire diff because too many files (348) changed.
View
2  spec/build/dependencygrapher/print_dependencies_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
require 'rakelib/dependency_grapher'
describe "DependencyGrapher#print_dependencies" do
View
2  spec/build/dependencygrapher/process_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
require 'rakelib/dependency_grapher'
describe "DependencyGrapher#process" do
View
2  spec/compiler/alias_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Alias node" do
alias_both = lambda do |g|
View
2  spec/compiler/and_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An And node" do
relates "(a and b)" do
View
2  spec/compiler/array_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Array node" do
relates '[1, :b, "c"]' do
View
2  spec/compiler/attrasgn_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Attrasgn node" do
relates <<-ruby do
View
2  spec/compiler/back_ref_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Back_ref node" do
relates "[$&, $`, $', $+]" do
View
2  spec/compiler/call_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Call node" do
relates "self.method" do
View
2  spec/compiler/case_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Case node" do
relates <<-ruby do
View
2  spec/compiler/cdecl_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Cdecl node" do
relates "X = 42" do
View
2  spec/compiler/class_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Class node" do
relates <<-ruby do
View
2  spec/compiler/colon2_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Colon2 node" do
relates "X::Y" do
View
2  spec/compiler/colon3_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Colon3 node" do
relates "::X" do
View
2  spec/compiler/const_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Const node" do
relates "X" do
View
2  spec/compiler/cvar_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Cvar node" do
relates "@@x" do
View
2  spec/compiler/cvasgn_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Cvasgn node" do
relates <<-ruby do
View
2  spec/compiler/cvdecl_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Cvdecl node" do
relates <<-ruby do
View
2  spec/compiler/defined_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Defined node" do
relates "defined? $x" do
View
2  spec/compiler/defn_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Defn node" do
relates <<-ruby do
View
2  spec/compiler/defs_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Defs node" do
relates <<-ruby do
View
2  spec/compiler/dot2_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Dot2 node" do
relates "(a..b)" do
View
2  spec/compiler/dot3_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Dot3 node" do
relates "(a...b)" do
View
2  spec/compiler/dregx_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Dregx node" do
relates <<-ruby do
View
8 spec/compiler/dstr_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Dstr node" do
relates <<-ruby do
@@ -239,9 +239,9 @@
end
relates <<-ruby do
-<<-EOF
-def test_\#{action}_valid_feed
-EOF
+<<-EOF
+def test_\#{action}_valid_feed
+EOF
ruby
compile do |g|
View
2  spec/compiler/dsym_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Dsym node" do
relates ':"x#{(1 + 1)}y"' do
View
2  spec/compiler/dxstr_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Dxstr node" do
relates <<-ruby do
View
2  spec/compiler/ensure_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Ensure node" do
relates <<-ruby do
View
2  spec/compiler/false_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A False node" do
relates "false" do
View
2  spec/compiler/flip2_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Flip2 node" do
relates <<-ruby do
View
2  spec/compiler/flip3_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Flip3 node" do
relates <<-ruby do
View
2  spec/compiler/for_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A For node" do
relates <<-ruby do
View
2  spec/compiler/gasgn_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Gasgn node" do
relates "$x = 42" do
View
2  spec/compiler/gvar_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Gvar node" do
relates "$x" do
View
2  spec/compiler/hash_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Hash node" do
relates "{ 1 => 2, 3 => 4 }" do
View
2  spec/compiler/iasgn_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Iasgn node" do
relates "@a = 4" do
View
2  spec/compiler/if_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An If node" do
relates <<-ruby do
View
2  spec/compiler/iter_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Iter node" do
empty_block = lambda do |g|
View
2  spec/compiler/lasgn_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Lasgn node" do
relates "a = 1" do
View
2  spec/compiler/lit_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Lit node" do
relates "0b1111" do
View
2  spec/compiler/masgn_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Masgn node" do
relates "a, b.c = b.c, true" do
View
2  spec/compiler/match2_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Match2 node" do
relates '/x/ =~ "blah"' do
View
2  spec/compiler/match3_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Match3 node" do
relates '"blah" =~ /x/' do
View
2  spec/compiler/match_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Match node" do
relates "1 if /x/" do
View
2  spec/compiler/module_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Module node" do
relates <<-ruby do
View
2  spec/compiler/nil_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Nil node" do
relates "nil" do
View
2  spec/compiler/not_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Not node" do
relates "(not true)" do
View
2  spec/compiler/nth_ref_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Nth_ref node" do
relates "$1" do
View
2  spec/compiler/op_asgn_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Op_asgn1 node" do
relates "a &&= 8" do
View
2  spec/compiler/or_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Or node" do
relates "(a or b)" do
View
2  spec/compiler/postexe_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Postexe node" do
relates "END { 1 }" do
View
2  spec/compiler/regex_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Regex node" do
relates "str.split(//i)" do
View
2  spec/compiler/rescue_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Rescue node" do
rescue_empty = lambda do |g|
View
2  spec/compiler/return_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Return node" do
relates "return" do
View
2  spec/compiler/sclass_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Sclass node" do
relates <<-ruby do
View
2  spec/compiler/str_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Str node" do
relates '"x"' do
View
2  spec/compiler/super_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Super node" do
relates <<-ruby do
View
2  spec/compiler/transforms/assembly_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using InlineAssembly transform" do
relates <<-ruby do
View
2  spec/compiler/transforms/block_given_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using BlockGiven transform" do
block_given = lambda do |g|
View
2  spec/compiler/transforms/fast_coerce_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using SendFastCoerceTo transform" do
relates <<-ruby do
View
2  spec/compiler/transforms/fast_math_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using FastMath transform" do
relates "1 + 1" do
View
2  spec/compiler/transforms/fast_new_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using FastNew transform" do
relates "new" do
View
2  spec/compiler/transforms/fast_system_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using SendInstructionMethod transform" do
relates "a.__kind_of__ b" do
View
2  spec/compiler/transforms/invoke_primitive_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using InvokePrimitive transform" do
relates <<-ruby do
View
2  spec/compiler/transforms/kernel_methods_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using kernel_methods transform" do
relates "4 / 2" do
View
2  spec/compiler/transforms/loop_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using SendLoop transform" do
relates <<-ruby do
View
2  spec/compiler/transforms/primitive_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using PrimitiveDeclaration transform" do
relates <<-ruby do
View
2  spec/compiler/transforms/privately_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "A Call node using SendPrivately transform" do
relates <<-ruby do
View
2  spec/compiler/true_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A True node" do
relates "true" do
View
2  spec/compiler/undef_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Undef node" do
relates "undef :x" do
View
2  spec/compiler/until_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "An Until node" do
pre_until_sexp = [
View
2  spec/compiler/valias_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Valias node" do
relates "alias $y $x" do
View
2  spec/compiler/while_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A While node" do
pre_while_sexp = [
View
2  spec/compiler/xstr_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Xstr node" do
relates "`touch 5`" do
View
2  spec/compiler/yield_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Yield node" do
relates "yield(42, 24)" do
View
2  spec/compiler/zsuper_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "A Zsuper node" do
relates <<-ruby do
View
4 spec/core/ar/delete_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe 'Ar#delete' do
after :each do
View
4 spec/core/ar/extract_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe 'Ar#extract' do
before :all do
View
4 spec/core/ar/list_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe 'Ar#list' do
after :each do
View
4 spec/core/ar/replace_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
require 'etc'
describe 'Ar#replace' do
View
4 spec/core/ar/write_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe 'Ar#write' do
after :each do
View
2  spec/core/array/identitymap/delete_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::IdentityMap#delete" do
before :each do
View
2  spec/core/array/identitymap/include_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::IdentityMap#include?" do
before :each do
View
2  spec/core/array/identitymap/load_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::IdentityMap#load" do
it "imports the contents of the array" do
View
2  spec/core/array/identitymap/size_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::IdentityMap#size" do
it "returns 0 if the map is empty" do
View
2  spec/core/array/identitymap/to_array_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::IdentityMap#to_array" do
it "returns an empty Array if the map is empty" do
View
2  spec/core/array/iterator/allocate_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::Iterator.allocate" do
it "raises a TypeError" do
View
2  spec/core/array/iterator/at_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::Iterator#at for a forward iterator" do
before :each do
View
2  spec/core/array/iterator/bounds_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::Iterator#bounds for a forward iterator" do
before :each do
View
2  spec/core/array/iterator/index_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::Iterator#index for a forward iterator" do
before :each do
View
2  spec/core/array/iterator/item_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::Iterator#item for a forward iterator" do
before :each do
View
2  spec/core/array/iterator/new_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::Iterator.new" do
before :each do
View
2  spec/core/array/iterator/next_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::Iterator#next for a forward iterator" do
before :each do
View
2  spec/core/array/iterator/rnext_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "Array::Iterator#rnext for a reverse iterator" do
before :each do
View
2  spec/core/array/to_iter_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "Array#to_iter" do
it "returns an instance of Array::Iterator" do
View
2  spec/core/array/to_reverse_iter_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "Array#to_reverse_iter" do
it "returns an instance of Array::Iterator" do
View
2  spec/core/array/to_tuple_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "Array#to_tuple" do
it "returns an instance of Rubinius::Tuple" do
View
2  spec/core/backtrace/backtrace_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/color_from_loc_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/each_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/element_reference_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/eval_color_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/fill_from_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/first_color_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/frames_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/join_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/kernel_color_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/new_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/reverse_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/show_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/to_mri_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/to_s_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/backtrace/top_context_spec.rb
@@ -1 +1 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
View
2  spec/core/bignum/bignum_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "Bignum" do
platform_is :wordsize => 32 do
View
2  spec/core/bignum/coerce_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "Bignum#coerce" do
it "returns [Bignum, Bignum] if other is a Fixnum" do
View
4 spec/core/breakpoint/calculate_next_breakpoint_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe "StepBreakpoint#calculate_next_breakpoint" do
View
4 spec/core/breakpoint/calculate_target_breakpoint_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe "StepBreakpoint#calculate_step_breakpoint" do
View
4 spec/core/breakpoint/initialize_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe "GlobalBreakpoint#initalize" do
View
4 spec/core/breakpoint/install_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe "Breakpoint#enable" do
before :each do
View
4 spec/core/breakpoint/remove_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe "Breakpoint#disable" do
before :each do
View
4 spec/core/breakpoint/wait_for_breakpoint_spec.rb
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe "BreakpointTracker#wait_for_breakpoint" do
before :each do
View
2  spec/core/bytearray/element_reference_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "ByteArray#[]" do
it "returns the byte at index" do
View
2  spec/core/bytearray/element_set_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "ByteArray#[]=" do
it "sets the byte at index" do
View
2  spec/core/bytearray/new_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "ByteArray.new" do
it "creates an instance with the correct number of fields" do
View
2  spec/core/class/name_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "Class" do
it "permits setting an attr_accessor :name" do
View
6 spec/core/codeloader/require_compiled_spec.rb
@@ -1,6 +1,6 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/../../ruby/fixtures/code_loading'
-require File.dirname(__FILE__) + '/../../fixtures/code_loading'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../../../ruby/fixtures/code_loading', __FILE__)
+require File.expand_path('../../../fixtures/code_loading', __FILE__)
describe "Rubinius::CodeLoader#require_compiled" do
before :each do
View
2  spec/core/ctype/isalnum_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "CType#isalnum" do
it "returns true if self is between A..Z, a..z, 0..9" do
View
2  spec/core/ctype/isctrl_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "CType#isctrl" do
it "returns true if self is an ASCII control character" do
View
2  spec/core/ctype/isdigit_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "CType#isdigit" do
it "returns true if self is between 0..9" do
View
2  spec/core/ctype/islower_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "CType#islower" do
it "returns true if self is between a..z" do
View
2  spec/core/ctype/isspace_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "CType#isspace" do
it "returns true if self is ASCII whitespace" do
View
2  spec/core/ctype/isupper_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "CType#isupper" do
it "returns true if self is between A..Z" do
View
2  spec/core/ctype/tolower_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "CType#tolower" do
it "returns self in range a..z if self is between A..Z, otherwise return self" do
View
2  spec/core/ctype/toprint_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "CType#toprint" do
it "returns escaped control characters" do
View
2  spec/core/ctype/toupper_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "CType#toupper" do
it "returns a value in the range A..Z if self is between a..z, otherwise return self" do
View
2  spec/core/ffi/add_typedef_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "FFI.add_typedef" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/config_hash_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "FFI.config_hash" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/config_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "FFI.config" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/find_type_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe "FFI.find_type" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/library/attach_foreign.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
# TODO: This method no longer exists. Rework appropriate specs for
# #attach_function and remove this file
View
2  spec/core/ffi/library/attach_function_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::Library#attach_function" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/library/ffi_lib_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::Library#ffi_lib" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/library/native_function.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
# TODO: Obsolete. Rework if appropriate for FFI::Library#attach_function
View
2  spec/core/ffi/memorypointer/address_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#address" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/autorelease_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#autorelease=" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/clone_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#clone" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/dup_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#dup" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/element_reference_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#[]" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/free_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#free" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/get_at_offset_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#get_at_offset" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/inspect_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#inspect" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/new_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer.new" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/null_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#null?" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/plus_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#+" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_array_of_int_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_array_of_int" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_array_of_long_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_array_of_long" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_array_of_type_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_array_of_type" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_double_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_double" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_float_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_float" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_int_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_int" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_long_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_long" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_pointer_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_pointer" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_string_length_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_string_length" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_string_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_string" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/read_string_to_null_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#read_string_to_null" do
it "needs to be reviewed for spec completeness"
View
2  spec/core/ffi/memorypointer/set_at_offset_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
describe "FFI::MemoryPointer#set_at_offset" do
it "needs to be reviewed for spec completeness"