Skip to content

Commit

Permalink
fixed priority-id option.
Browse files Browse the repository at this point in the history
  • Loading branch information
authorNari committed Feb 18, 2011
1 parent 4d569c3 commit 08ab9c5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/redcuine/issue.rb
Expand Up @@ -2,7 +2,7 @@ module Redcuine
class Issue < Base
@@default_param = {}
@@issue_attribute_keys = [:subject, :description, :tracker_id, :status_id,
:category_id, :assigned_to_id, :priority, :fixed_version,
:category_id, :assigned_to_id, :priority_id, :fixed_version,
:start_date, :due_date, :estimate_date, :done_ratio]

def self.run
Expand Down
2 changes: 1 addition & 1 deletion lib/redcuine/optparser.rb
Expand Up @@ -32,7 +32,7 @@ def self.default_opts(opt)

default_opts(opt)
%w(id subject description tracker-id status-id category-id assigned-to-id
priority fixed-version start-date due-date estimate-date
priority-id fixed-version start-date due-date estimate-date
done-ratio site project-id).each do |k|
src = <<-SRC
opt.on('--#{k} val', 'Set #{k.gsub("-", " ")}') do |val|
Expand Down
4 changes: 2 additions & 2 deletions test/issue_test.rb
Expand Up @@ -66,7 +66,7 @@ def test_post
Redcuine::CONFIG["rest_type"] = :post
Redcuine::CONFIG["project_id"] = "1"
keys = [:subject, :description, :tracker_id, :status_id,
:category_id, :assigned_to_id, :priority, :fixed_version,
:category_id, :assigned_to_id, :priority_id, :fixed_version,
:start_date, :due_date, :estimate_date, :done_ratio]
keys.each do |k|
Redcuine::CONFIG[k.to_s] = true
Expand Down Expand Up @@ -94,7 +94,7 @@ def test_put
Redcuine::CONFIG["rest_type"] = :put
Redcuine::CONFIG["id"] = "1"
keys = [:subject, :description, :tracker_id, :status_id,
:category_id, :assigned_to_id, :priority, :fixed_version,
:category_id, :assigned_to_id, :priority_id, :fixed_version,
:start_date, :due_date, :estimate_date, :done_ratio]
keys.each do |k|
Redcuine::CONFIG[k.to_s] = true
Expand Down
2 changes: 1 addition & 1 deletion test/optparser_test.rb
Expand Up @@ -26,7 +26,7 @@ def test_parse_default_opts

def test_issue_parse
opts = %w(id subject description tracker-id status-id
category-id assigned-to-id priority fixed-version
category-id assigned-to-id priority-id fixed-version
start-date due-date estimate-date done-ratio site project-id)
args = opts.map{|k| ["--#{k}", k]}.flatten
Redcuine::OptParser.issue_parse!(args)
Expand Down

0 comments on commit 08ab9c5

Please sign in to comment.