mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-18 00:56:41 +10:00
19 lines
446 B
Ruby
19 lines
446 B
Ruby
require 'spec_helper'
|
|
|
|
describe JiraIssue do
|
|
subject { JiraIssue.new('JIRA-123') }
|
|
|
|
its(:id) { should eq('JIRA-123') }
|
|
its(:iid) { should eq('JIRA-123') }
|
|
its(:to_s) { should eq('JIRA-123') }
|
|
|
|
describe :== do
|
|
specify { subject.should eq(JiraIssue.new('JIRA-123')) }
|
|
specify { subject.should_not eq(JiraIssue.new('JIRA-124')) }
|
|
|
|
it 'only compares with JiraIssues' do
|
|
subject.should_not eq('JIRA-123')
|
|
end
|
|
end
|
|
end
|