Namespace
Module
Methods
Class Public methods
fixture_paths=(fixture_paths)
📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 31
class_attribute :fixture_paths, instance_writer: false, default: []
🔎 See on GitHub
Instance Public methods
fixture(fixture_set_name, *fixture_names)
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
# File activerecord/lib/active_record/test_fixtures.rb, line 103
def fixture(fixture_set_name, *fixture_names)
active_record_fixture(fixture_set_name, *fixture_names)
end
🔎 See on GitHub