test/test_unpiercable.rb in veils-0.2.0 vs test/test_unpiercable.rb in veils-0.3.0
- old
+ new
@@ -22,17 +22,17 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
require 'minitest/autorun'
require 'json'
-require_relative '../lib/veil'
+require_relative '../lib/unpiercable'
# Veil test.
# Author:: Yegor Bugayenko (yegor256@gmail.com)
# Copyright:: Copyright (c) 2020 Yegor Bugayenko
# License:: MIT
-class VeilTest < Minitest::Test
+class UnpiercableTest < Minitest::Test
def test_simple
obj = Object.new
def obj.read(foo)
foo
end
@@ -40,10 +40,10 @@
def obj.touch; end
foo = Unpiercable.new(obj, read: 1)
assert_equal(1, foo.read(5))
foo.to_s
foo.touch
- assert_equal(5, foo.read(5))
+ assert_equal(1, foo.read(5))
end
def test_behaves_like_array_with_json
origin = [1, 2, 3]
foo = Unpiercable.new(origin)