Sha256: fccb07b30506e45d3960a4cc6e3d50f7e9682da9e450ead806ae60481fef0f4a
Contents?: true
Size: 719 Bytes
Versions: 5
Compression:
Stored size: 719 Bytes
Contents
# encoding: utf-8 require_relative '../../minitest_helper' require 'strike/table' class Strike::TableTest < MiniTest::Unit::TestCase def setup @table = Strike::Table.new end def test_should_respond_to_missing_methods assert @table.name(:test) assert @table.test end def test_should_save_method_calls_as_hash expected = { name: :test } @table.name(:test) assert_equal expected, @table.to_hash end def test_should_respond_to_call assert_equal Hash.new, @table.call end def test_should_accept_a_block_when_its_initialized table = Strike::Table.new do |t| t.name :test end expected = { name: :test } assert_equal expected, table.to_hash end end
Version data entries
5 entries across 5 versions & 1 rubygems