diff options
| author | Alban Peignier | 2017-12-18 11:08:02 +0100 |
|---|---|---|
| committer | Alban Peignier | 2017-12-18 11:08:02 +0100 |
| commit | 9700ceb1bbbcb1b209213947be7772cd947e70c6 (patch) | |
| tree | 4426e6a9da9dd9a290cc08c34e05e00f4fd6c74c /spec/models/referential_cloning_spec.rb | |
| parent | c673d263bd9ca4be30ebc6895f8567e7860b0a80 (diff) | |
| download | chouette-core-9700ceb1bbbcb1b209213947be7772cd947e70c6.tar.bz2 | |
Remove unless subject alias_method. Use be_nil when possible. Refs #5283
Diffstat (limited to 'spec/models/referential_cloning_spec.rb')
| -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 |
