Skip to Content Skip to Search

module ActiveRecord::TestFixtures

Public class methods

Returns the ActiveRecord::FixtureSet collection

GitHub

Source code GitHub
# File activerecord/lib/active_record/test_fixtures.rb, line 31
class_attribute :fixture_paths, instance_writer: false, default: []

Public instance methods

Generic fixture accessor for fixture names that may conflict with other methods.

assert_equal "Ruby on Rails", web_sites(:rubyonrails).name
assert_equal "Ruby on Rails", fixture(:web_sites, :rubyonrails).name
Source code GitHub
# File activerecord/lib/active_record/test_fixtures.rb, line 118
def fixture(fixture_set_name, *fixture_names)
  active_record_fixture(fixture_set_name, *fixture_names)
end

Namespace

Definition files