Module: Gen::TestFixtures

Defined in:
docs/api/stubs/generated_app.rb

Overview

The fixture accessors of gen/test/data.rb, one per fixture file. The same names are instance methods of ActiveSupport::TestCase and top-level methods, each forwarding here.

Class Method Summary collapse

Class Method Details

.articles(label) ⇒ Article

Returns Article.find(<the label's id>).

Examples:

article = articles(:one)

Parameters:

  • label (Symbol, String) —

    a label of test/fixtures/articles.yml

Returns:

  • (Article) —

    Article.find(<the label's id>)

Raises:



1394
# File 'docs/api/stubs/generated_app.rb', line 1394

def self.articles(label); end