Remove redundant specs

The same cases are tested in the previous `describe` block.
This commit is contained in:
Javi Martín
2018-11-28 14:26:30 +01:00
parent 281155dde5
commit 6974b7d03a

View File

@@ -42,28 +42,6 @@ describe Milestone do
end end
end end
describe "#description_or_status_present?" do
let(:milestone) { build(:milestone) }
it "is not valid when status is removed and there's no description" do
milestone.update(description: nil)
expect(milestone.update(status_id: nil)).to be false
end
it "is not valid when description is removed and there's no status" do
milestone.update(status_id: nil)
expect(milestone.update(description: nil)).to be false
end
it "is valid when description is removed and there is a status" do
expect(milestone.update(description: nil)).to be true
end
it "is valid when status is removed and there is a description" do
expect(milestone.update(status_id: nil)).to be true
end
end
describe ".published" do describe ".published" do
it "uses the application's time zone date", :with_different_time_zone do it "uses the application's time zone date", :with_different_time_zone do
published_in_local_time_zone = create(:milestone, published_in_local_time_zone = create(:milestone,