Merb Wiki
Home
All Pages
New Page
Editing Model Specs
Textile Enabled
| [[Page Name]] for internal links
Merb is ORM agnostic, and there is no common way to write specs due to the differences in the ORM you choose. In fact, Merb itself provides no additional helpers, matchers, or fixture framework for your specs. h2. Keep In Mind The only assumption Merb makes about your models is a *to_param* method. Other than that, you are not required to include a module or inherit from a parent class. ORMs with a merb plugin will handle this for you. h2. ORM Examples h3. DataMapper 0.9.0 h3. DataMapper 0.3.0 h3. Sequel h3. Active Record h2. Fixtures h3. Merb-Fixtures As we said, Merb itself doesn't provide any fixture framework, but there is a plugin called "Merb-fixtures":http://github.com/botanicus/merb-fixtures/tree/master which provides flexible and easy to use fixtures system for merb >= 0.9.4. Merb-fixtures are quite different from fixtures in Rails: you write it in Ruby DSL, not in YAML as in Rails, so it's more powerful. Merb-fixtures are useful not just for testing – it has great API and you can use it from Merb console. Other great place when you can use Merb-fixtures are migrations. For more informations see its "README":http://github.com/botanicus/merb-fixtures/tree/master/README h2. Helpers & Matchers None!
Submit
Recent Activity
Home
was updated
Home
was updated
deploying-a-merb-application-to-a-jee-container-us
was updated
deploying-a-merb-application-to-a-jee-container-us
was updated
Merb Developers available for work
was updated
deploying-a-merb-application-to-a-jee-container-us
was updated
deploying-a-merb-application-to-a-jee-container-us
was updated
deploying-a-merb-application-to-a-jee-container-us
was updated
deploying-a-merb-application-to-a-jee-container-us
was updated
Home
was updated