| Class | Test::Unit::TestCase |
| In: |
lib/adaptation/test/fake_fixtures.rb
lib/adaptation/test/test_help.rb |
| Parent: | Object |
Asserts a database doesn‘t exist. To do so this method tries to establish a connection with the specified database. Connection information must be provided with a hash. This method assert if connection fails, but that could also mean that provided connection hash is wrong. The connection options are the same as in assert_database_present:
| :database: | => database name |
| :host: | => database host |
| :username: | => database user |
| :password: | => database password |
| :adapter: | => database type (default is "mysql") |
These options correspond to those in Activerecord::Base.establish_conection
Asserts a database exists. To do so this method tries to establish a connection with the specified database. Conection information must be provided with a hash:
| :database: | => database name |
| :host: | => database host |
| :username: | => database user |
| :password: | => database password |
| :adapter: | => database type (default is "mysql") |
These options correspond to those in Activerecord::Base.establish_conection
Asserts that a message in a xml fixture file is converted into an Adaptation::Message that if serialized again to xml is not equivalent to the xml data in the initial fixture file. An Adaptation::Message object cretaed from a xml fixture, will only have the xml tags specified in its class definition (using has_one, has_many, has_text…) so this assertion can be useful to check that undesired xml tags are filtered.
Asserts that an Adaptation::Message message, build from a xml fixture file doesn‘t pass all the validations specified in the class definition.
Asserts that a message in a xml fixture file is converted into an Adaptation::Message that if serialized again to xml is equivalent to the xml data in the initial fixture file. An Adaptation::Message object cretaed from a xml fixture, will only have the xml tags specified in its class definition (using has_one, has_many, has_text…) so this assertion can be useful to check that the class is defined correctly.
Asserts that an Adaptation::Message message build from a xml fixture file passes all the validations specified in the class definition.
Retuns a message object from a fixture, without processing it
Builds a message from a xml fixture file and processes it the same way mesages from the mom are processed by adaptation, but using a test environment. Published messages will be published to a mock MOM.