diff options
| author | Marc Florisson | 2012-08-30 23:07:00 +0200 | 
|---|---|---|
| committer | Marc Florisson | 2012-08-30 23:07:00 +0200 | 
| commit | 05f8153df98cd26ea1bea6acd4d6f982a65cefc9 (patch) | |
| tree | 5c0fd6d05d73e096b8f3d2ef858da9986f461de0 /spec/support/referential.rb | |
| parent | 9539c0b787c92f8a85337d3e87cf65bb9b072d35 (diff) | |
| download | chouette-core-05f8153df98cd26ea1bea6acd4d6f982a65cefc9.tar.bz2 | |
fix referential creation in support
Diffstat (limited to 'spec/support/referential.rb')
| -rw-r--r-- | spec/support/referential.rb | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/spec/support/referential.rb b/spec/support/referential.rb index e74744fda..28f3799ec 100644 --- a/spec/support/referential.rb +++ b/spec/support/referential.rb @@ -29,10 +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" ) || -      Referential.create(:prefix => "first", :name => "first",  -                         :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)) +    # Referential.where(:slug => 'first').first_or_create(FactoryGirl.attributes_for(:referential))    end    config.before(:each) do | 
