Sha256: 6bfb1694b63e55edf29df49791da23f116d5002c972b77d7652039a28a341d1f

Contents?: true

Size: 222 Bytes

Versions: 13

Compression:

Stored size: 222 Bytes

Contents

require 'minitest/autorun'
require 'shenanigans/kernel/with'

class With < MiniTest::Unit::TestCase
  def test_with
    result = with([]) do |a|
      a << "a"
      a << "b"
    end
    assert result == %w(a b)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shenanigans-1.0.13 test/kernel/test_with.rb
shenanigans-1.0.11 test/kernel/test_with.rb
shenanigans-1.0.10 test/kernel/test_with.rb
shenanigans-1.0.9 test/kernel/test_with.rb
shenanigans-1.0.8 test/kernel/test_with.rb
shenanigans-1.0.7 test/kernel/test_with.rb
shenanigans-1.0.6 test/kernel/test_with.rb
shenanigans-1.0.5 test/kernel/test_with.rb
shenanigans-1.0.4 test/kernel/test_with.rb
shenanigans-1.0.3 test/kernel/test_with.rb
shenanigans-1.0.2 test/kernel/test_with.rb
shenanigans-1.0.1 test/kernel/test_with.rb
shenanigans-1.0.0 test/kernel/test_with.rb