Sha256: 322c483593052d466ed7be0ad4718ca920a239212bfcfdebf776772e5febb812

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

require 'spec_helper'

describe "CommitMsgToIssueId" do
  describe "#parse" do
    [
      ['Commit message Issue #123.', '123'],
      ['Commit message #123.', nil],
      ['Add method #yey Commit message Issue #123.', '123']
    ].each do |msg, id|
      it "should return #{id} for '#{msg}'" do
        CommitMsgToIssueId.parse(msg).should == id
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitmine-0.1.2 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.1 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.0 spec/commit_msg_to_issue_id_spec.rb