diff options
| author | Alban Peignier | 2012-08-30 17:48:36 +0200 |
|---|---|---|
| committer | Alban Peignier | 2012-08-30 17:48:36 +0200 |
| commit | b103b5a35f110ea25bddf6cd571bf2bb9f245a5d (patch) | |
| tree | 0ff08e5ef22312ec3b2b8f1f712790904fefeb39 /spec | |
| parent | 2d72bfff1e23a01b7a6d28e6ba153b7346980503 (diff) | |
| download | chouette-core-b103b5a35f110ea25bddf6cd571bf2bb9f245a5d.tar.bz2 | |
Comme quoi c'est pas la longueur qui compte
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/support/referential.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/referential.rb b/spec/support/referential.rb index e9ae4b39f..8a6ccc203 100644 --- a/spec/support/referential.rb +++ b/spec/support/referential.rb @@ -29,7 +29,7 @@ RSpec.configure do |config| config.before(:suite) do organisation = Organisation.find_or_create_by_name :name => "first" organisation.referentials.find_by_slug("first" ) || - create(:referential, :slug => "first", :organisation => organisation) + FactoryGirl.create(:referential, :slug => "first", :organisation => organisation) # FIXME in Rails 3.2 : # Referential.where(:slug => 'first').first_or_create(attributes_for(:referential)) end |
