8000 Add test for plan identifier copying · DMPRoadmap/roadmap@521ba8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 521ba8e

Browse files
committed
Add test for plan identifier copying
1 parent d8f8978 commit 521ba8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/models/plan_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,10 @@
398398
expect(subject.title).to include(plan.title)
399399
end
400400

401+
it "copies the new plan's id to its identifer" do
402+
expect(subject.identifier).to eql(subject.id.to_s)
403+
end
404+
401405
it 'persists the record' do
402406
expect(subject).to be_persisted
403407
end

0 commit comments

Comments
 (0)
0