You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In test/unit, minitest, junit, etc, the arguments are actual, expected. This allows you to read "assert_equal foo, bar" as "assert_equal_foo bar".
Ironically, that people often screw up the order of these arguments was one of the initial motivations for "actual.should eq(expected)". FWIW. From one grump to another ;)
The text was updated successfully, but these errors were encountered:
Cool. Also - I don't know if you know this but RSpec will let you use asserts like this:
RSpec.configure {|c| c.expect_with :stdlib}
That pulls in the assertions from test/unit in Ruby < 1.9, and MiniTest in Ruby >= 1.9. Won't give you RSpec's failure messaging, but that's how most folks are handling this these days.
In test/unit, minitest, junit, etc, the arguments are
actual, expected
. This allows you to read "assert_equal foo, bar" as "assert_equal_foo bar".Ironically, that people often screw up the order of these arguments was one of the initial motivations for "actual.should eq(expected)". FWIW. From one grump to another ;)
The text was updated successfully, but these errors were encountered: