test/unit/test_horizontal_selector.rb in sup-1.0 vs test/unit/test_horizontal_selector.rb in sup-1.1

- old
+ new

@@ -11,30 +11,30 @@ 'Acc:', values, []) end it "init w/ the first value selected" do first_value = values.first - @selector.val.must_equal first_value + assert_equal first_value, @selector.val end it "stores value for selection" do second_value = values[1] @selector.set_to second_value - @selector.val.must_equal second_value + assert_equal second_value, @selector.val end describe "for unknown value" do it "cannot select unknown value" do - @selector.wont_be :can_set_to?, strange_value + assert_equal false, @selector.can_set_to?(strange_value) end it "refuses selecting unknown value" do old_value = @selector.val assert_raises Redwood::HorizontalSelector::UnknownValue do @selector.set_to strange_value end - @selector.val.must_equal old_value + assert_equal old_value, @selector.val end end end