gitlab-org--gitlab-foss/spec/models/concerns/editable_spec.rb
2017-08-29 11:14:41 +03:00

11 lines
328 B
Ruby

require 'spec_helper'
describe Editable do
describe '#edited?' do
let(:issue) { create(:issue, last_edited_at: nil) }
let(:edited_issue) { create(:issue, created_at: 3.days.ago, last_edited_at: 2.days.ago) }
it { expect(issue.edited?).to eq(false) }
it { expect(edited_issue.edited?).to eq(true) }
end
end