change name

This commit is contained in:
Torsten Ruger
2017-09-27 15:35:55 +03:00
parent bf1b3e95bd
commit 6ca249118c
23 changed files with 93 additions and 96 deletions

View File

@ -13,7 +13,7 @@ require 'rubyx-object-file'
module Checker
def check should
out = Sof.write(@out)
out = RxFile.write(@out)
same = (should == out)
puts "Shouldda\n#{out}" unless same
assert_equal should , out
@ -28,4 +28,4 @@ class ObjectWithAttributes
attr_accessor :extra , :volotile
end
OBJECT_STRING = "ObjectWithAttributes(:name => 'some name', :number => 1234)"
Sof::Volotile.add(ObjectWithAttributes , [:volotile])
RxFile::Volotile.add(ObjectWithAttributes , [:volotile])

View File

@ -1,6 +1,6 @@
require_relative "helper"
class BasicSof < MiniTest::Test
class BasicRxFile < MiniTest::Test
include Checker
def test_true

View File

@ -9,17 +9,17 @@ class FailValue
end
end
class BasicValue < FailValue
def to_sof
def to_rxf
"'#{@name}'"
end
end
class ObjectSof < MiniTest::Test
class ObjectRxFile < MiniTest::Test
include Checker
def test_to_sof
def test_to_rxf
assert_raises NoMethodError do
Sof::Writer.write(FailValue.new("name"))
RxFile::Writer.write(FailValue.new("name"))
end
end

View File

@ -4,7 +4,7 @@ class NamedRef < ObjectWithAttributes
super()
@name = name
end
def sof_reference_name
def rxf_reference_name
@name.to_s
end
end

View File

@ -1,6 +1,6 @@
require_relative "helper"
class ObjectSof < MiniTest::Test
class ObjectRxFile < MiniTest::Test
include Checker
def test_simple_object