diff options
| author | Alban Peignier | 2012-08-30 17:21:07 +0200 |
|---|---|---|
| committer | Alban Peignier | 2012-08-30 17:21:07 +0200 |
| commit | dd64999b162cf73c0e3304ef882926920e3acdcf (patch) | |
| tree | a9c051de783332aea49d67573aa6acca81ec2bb8 | |
| parent | 3703143f2b77bc4e894dc3e12d56289b01fa0a82 (diff) | |
| download | chouette-core-dd64999b162cf73c0e3304ef882926920e3acdcf.tar.bz2 | |
Give a try to a nice syntax without long terms
| -rw-r--r-- | spec/support/referential.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/referential.rb b/spec/support/referential.rb index 892903228..e9ae4b39f 100644 --- a/spec/support/referential.rb +++ b/spec/support/referential.rb @@ -29,9 +29,9 @@ RSpec.configure do |config| config.before(:suite) do organisation = Organisation.find_or_create_by_name :name => "first" organisation.referentials.find_by_slug("first" ) || - FactoryGirl(:referential, :slug => "first", :organisation => organisation) + create(:referential, :slug => "first", :organisation => organisation) # FIXME in Rails 3.2 : - # Referential.where(:slug => 'first').first_or_create(FactoryGirl.attributes_for(:referential)) + # Referential.where(:slug => 'first').first_or_create(attributes_for(:referential)) end config.before(:each) do |
