diff options
| author | Alban Peignier | 2017-12-18 11:08:02 +0100 | 
|---|---|---|
| committer | Zog | 2017-12-19 13:21:49 +0100 | 
| commit | aef2f87d6a64072bab3766094f483127d2e7bb38 (patch) | |
| tree | 4a863596f11931b7f9ce90e66455684879ed8d48 /spec | |
| parent | 49952f6be36a59f167310db6f902a84a165150a0 (diff) | |
| download | chouette-core-aef2f87d6a64072bab3766094f483127d2e7bb38.tar.bz2 | |
Remove unless subject alias_method. Use be_nil when possible. Refs #5283
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/models/referential_cloning_spec.rb | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/models/referential_cloning_spec.rb b/spec/models/referential_cloning_spec.rb index c01be20a9..4327c98aa 100644 --- a/spec/models/referential_cloning_spec.rb +++ b/spec/models/referential_cloning_spec.rb @@ -1,7 +1,6 @@  require 'spec_helper'  RSpec.describe ReferentialCloning, :type => :model do -  alias_method :referential_cloning, :subject    it 'should have a valid factory' do      expect(FactoryGirl.build(:referential_cloning)).to be_valid @@ -66,12 +65,12 @@ RSpec.describe ReferentialCloning, :type => :model do      it "defines started_at" do        referential_cloning.clone! -      expect(referential_cloning.started_at).not_to be(nil) +      expect(referential_cloning.started_at).not_to be_nil      end      it "defines ended_at" do        referential_cloning.clone! -      expect(referential_cloning.ended_at).not_to be(nil) +      expect(referential_cloning.ended_at).not_to be_nil      end    end  | 
