module MySQLExpectations::Matchers
Allows assertions on a database
Public Instance Methods
have_collation(expected_collation)
click to toggle source
have_engine_type(expected_engine_type)
click to toggle source
# File lib/mysql_expectations/matchers.rb, line 38 def have_engine_type(expected_engine_type) HaveEngineType.new(expected_engine_type) end
have_field(expected_field_name)
click to toggle source
# File lib/mysql_expectations/matchers.rb, line 42 def have_field(expected_field_name) HaveField.new(expected_field_name) end
have_key(expected_key)
click to toggle source
# File lib/mysql_expectations/matchers.rb, line 46 def have_key(expected_key) HaveKey.new(expected_key) end
have_table(expected_table_name)
click to toggle source
only_have_tables(*expected_table_names)
click to toggle source
# File lib/mysql_expectations/matchers.rb, line 26 def only_have_tables(*expected_table_names) DatabaseOnlyHaveTables.new(*expected_table_names) end