Add shift task presence validation expectation

This commit is contained in:
Bertocq
2017-10-03 23:45:02 +02:00
parent 3a0e709e14
commit b893c0bace

View File

@@ -24,6 +24,11 @@ describe :shift do
expect(shift).to_not be_valid
end
it "should not be valid without a task" do
shift.task = nil
expect(shift).to_not be_valid
end
end
describe "officer_assignments" do