CSC/ECE 517 Spring 2013/using fixtures with expertiza

From Expertiza_Wiki
Revision as of 20:00, 5 May 2013 by Dcpratt (talk | contribs)
Jump to navigation Jump to search

Using Fixtures with Expertiza

What is a Fixture?

How do fixtures compare to other test tools?

When is it appropriate to use fixtures?

How to use fixtures in Expertiza.

YAML language

YAML originally stood for “Yet Another Markup Language,” the authors now claim that it stands for “YAML Ain’t Markup Language.” The YAML specification can be found here. [link]

Basic YAML rules.

A pound / hash sign (‘#’) is used to begin a comment line. Only spaces, never tabs, may be used to indent YAML files. While this may seem annoying, it’s done to ensure compatibility between different environments which treat tabs in different ways.

An ActiveRecord object is defined with YAML in the following manner: objectName:

 Attribute1: value
 Attribute2: value

Attributen: value