CSC/ECE 517 Spring 2013/using fixtures with expertiza: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Using Fixtures with Expertiza
==Using Fixtures with Expertiza==


What is a Fixture?
What is a Fixture?

Revision as of 20:04, 5 May 2013

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