diff options
Diffstat (limited to 'spec/models/referential_spec.rb')
| -rw-r--r-- | spec/models/referential_spec.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/models/referential_spec.rb b/spec/models/referential_spec.rb index f8e6ffacc..9f87d0629 100644 --- a/spec/models/referential_spec.rb +++ b/spec/models/referential_spec.rb @@ -1,12 +1,17 @@ require 'spec_helper' describe Referential, :type => :model do + let(:ref) { create :referential } - it "create a rule_parameter_set" do - referential = create(:referential) + # it "create a rule_parameter_set" do + # referential = create(:referential) #expect(referential.rule_parameter_sets.size).to eq(1) - end + # end it { should have_one(:referential_metadata) } it { should belong_to(:workbench) } + + it 'should create a ReferentialCloning when a referential is cloned' do + expect { create(:referential, created_from: ref) }.to change{ReferentialCloning.count}.by(1) + end end |
