Sha256: 52aba1c536d10d7edab3fe1243f38f22ce0e65b18b8d3c54398894b2b7c4cef6
Contents?: true
Size: 562 Bytes
Versions: 12
Compression:
Stored size: 562 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') class UnderstandableTest < Test::Unit::TestCase test "all understandings should collect understandings from all super classes" do a = Class.new do include Validatable::Understandable understands :a end b = Class.new(a) do include Validatable::Understandable understands :b end c = Class.new(b) do include Validatable::Understandable understands :c end assert_array_equal [:a, :b, :c], c.all_understandings end end
Version data entries
12 entries across 12 versions & 1 rubygems