blob: cd73af3b48076075e06c14454dedb74315627ba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require 'spec_helper'
describe Editable do
describe '#is_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.is_edited?).to eq(false) }
it { expect(edited_issue.is_edited?).to eq(true) }
end
end
|