Currently browsing category

Ruby

Para não esquecer: Ruby on Rails Unit Testing Assertions

Basic Assertions assert(boolean, message) assert(person.name == “John”, “Name was expected to be John.”) assert(item.errors.invalid?(:price)) assert_equal(expected, actual, message) assert_equal(person.name, “John”, “Name was expected …