test/unit/understandable_test.rb in validatable-1.6.6 vs test/unit/understandable_test.rb in validatable-1.6.7

- old
+ new

@@ -1,21 +1,19 @@ 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 +Expectations do + expect [:c, :b, :a] 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 + c.all_understandings end end