gitlab-org--gitlab-foss/spec/models/concerns/editable_spec.rb
Thong Kuah a2cfc150ce Add # frozen_string_literal to spec/models
Adds `# frozen_string_literal: true` to spec/models ruby files
2019-04-01 14:37:54 +13:00

13 lines
359 B
Ruby

# frozen_string_literal: true
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