Function fixture
Source pub fn fixture(table: &str, label: &str) -> Map<String, Value>
Expand description
The row of table loaded from the fixture label (Rails’ posts(:first)).
§Panics
When there is no such row.
§Examples
let post = ocre::testing::fixture("posts", "first");
assert_eq!(post["title"], "Hello");