diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-12-11 17:16:38 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-12-11 17:16:38 +1100 |
commit | c1db6959df06ba07b71213f3a281d4c5be38572f (patch) | |
tree | f4efa73fd63768b537ac620420c33629c0a19142 /spec/spec_helper.rb | |
parent | eb40b8d70d301586cf42a93ca6572e34f4157fa9 (diff) |
Load fixtures in the same way as before
Makes a simple model like Holiday pass, yay
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0292713d6..3c170ed16 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -20,6 +20,23 @@ RSpec.configure do |config| # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures config.fixture_path = "#{::Rails.root}/spec/fixtures" + # The order (!) of this is important thanks to foreign keys + config.global_fixtures = :users, + :public_bodies, + :public_body_translations, + :public_body_versions, + :info_requests, + :raw_emails, + :incoming_messages, + :outgoing_messages, + :comments, + :info_request_events, + :track_things, + :foi_attachments, + :has_tag_string_tags, + :holidays, + :track_things_sent_emails + # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false # instead of true. |