diff options
Diffstat (limited to 'spec/support/referential.rb')
| -rw-r--r-- | spec/support/referential.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/referential.rb b/spec/support/referential.rb index 6a664bfa5..e74744fda 100644 --- a/spec/support/referential.rb +++ b/spec/support/referential.rb @@ -29,7 +29,8 @@ RSpec.configure do |config| config.before(:suite) do organisation = Organisation.find_or_create_by_name :name => "first" organisation.referentials.find_by_slug("first" ) || - ::FactoryGirl.create(:referential, :slug => "first", :organisation => organisation) + Referential.create(:prefix => "first", :name => "first", + :slug => "first", :organisation => organisation) # FIXME in Rails 3.2 : # Referential.where(:slug => 'first').first_or_create(attributes_for(:referential)) end |
