Sha256: 86d02a0f9b9240cb5d49424465cdd3ab183b022ec5344d4c243790c8f9b0609a

Contents?: true

Size: 386 Bytes

Versions: 17

Compression:

Stored size: 386 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
        Gitmine::Issue.parse_for_issue_id(msg).should == id
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
gitmine-0.2.1 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.2.0 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.16 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.15 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.14 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.13 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.12 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.11 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.10 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.9 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.8 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.7 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.6 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.5 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.4.pre.1 spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.4.pre spec/commit_msg_to_issue_id_spec.rb
gitmine-0.1.3 spec/commit_msg_to_issue_id_spec.rb