fixes parfait/type tests place and guard file accordingly

test were in old directory and guard file broken accordingly
This commit is contained in:
Torsten Ruger 2017-04-23 18:43:32 +03:00
parent dda2ddd9fb
commit e387bdb5f2
6 changed files with 8 additions and 10 deletions

View File

@ -16,10 +16,8 @@ guard :minitest do # with Minitest::Unit
#Arm instructions
watch(%r{^lib/arm/instructions/(.+)_instruction.rb}) { |m| "test/arm/test_#{m[1]}.rb" }
#parfait basics
watch(%r{^lib/typed/parfait/(.+).rb}) { |m| "test/typed/parfait/test_#{m[1]}.rb" }
watch(%r{^lib/typed/parfait/type.rb}) { |m| "test/typed/type/test_all.rb" }
watch(%r{^lib/typed/parfait/typed_method.rb}) { |m| "test/typed/type/test_method_api.rb" }
#parfait type tests have a whole directory
watch(%r{^lib/parfait/type.rb}) { Dir["test/parfait/type/test_*.rb"] }
# Vool to_mom compile process + # Ruby to vool compile process
watch(%r{^lib/vool/statements/(.+)_statement.rb}) { |m| ["test/vool/to_mom/test_#{m[1]}.rb" ,"test/vool/statements/test_#{m[1]}.rb"] }

View File

@ -1,4 +1,4 @@
require_relative "../helper"
require_relative "../../helper"
class BasicType < MiniTest::Test

View File

@ -1,4 +1,4 @@
require_relative "../helper"
require_relative "../../helper"
class TypeHash < MiniTest::Test
@ -28,7 +28,7 @@ class TypeHash < MiniTest::Test
def test_to_hash
hash = @first.to_hash
assert_equal hash[:type] , :Type
assert_equal 2 , hash.length
assert_equal 2 , hash.length
end
def test_add_is_different
type = @first.add_instance_variable :random , :Integer

View File

@ -1,4 +1,4 @@
require_relative "../helper"
require_relative "../../helper"
class TypeMessages < MiniTest::Test

View File

@ -1,4 +1,4 @@
require_relative "../helper"
require_relative "../../helper"
class TestMethodApi < MiniTest::Test

View File

@ -1,4 +1,4 @@
require_relative "../helper"
require_relative "../../helper"
class TypeApi < MiniTest::Test