lib/you_track/client/mock.rb in you_track-0.4.4 vs lib/you_track/client/mock.rb in you_track-0.4.5
- old
+ new
@@ -2,14 +2,113 @@
attr_reader :url, :username
def self.data
@data ||= Hash.new { |h,k|
h[k] = {
- :issues => {},
- :comments => {},
- :users => {},
- :projects => {},
+ :issues => {},
+ :comments => {},
+ :users => {},
+ :projects => {},
+ :project_custom_fields => {},
+ :bundles => {
+ "States" => {
+ "type" => "state",
+ "name" => "States",
+ "values" => [
+ {"resolved" => "false", "value" => "Submitted"},
+ {"resolved" => "false", "value" => "Open"},
+ {"resolved" => "false", "value" => "In Progress"},
+ {"resolved" => "false", "value" => "To be discussed"},
+ {"resolved" => "false", "value" => "Reopened"},
+ {"resolved" => "true", "value" => "Can't Reproduce"},
+ {"resolved" => "true", "value" => "Duplicate"},
+ {"resolved" => "true", "value" => "Fixed"},
+ {"resolved" => "true", "value" => "Won't fix"},
+ {"resolved" => "true", "value" => "Incomplete"},
+ {"resolved" => "true", "value" => "Obsolete"},
+ {"resolved" => "true", "value" => "Verified"},
+ {"resolved" => "false", "value" => "New"}
+ ]
+ }
+ },
:custom_fields => {
+ "Type" => {
+ "name" => "Type",
+ "isPrivate" => false,
+ "visibleByDefault" => true,
+ "autoAttached" => true,
+ "type" => "enum[1]",
+ "attachBundlePolicy" => 0,
+ "defaultBundle" => "Types",
+ },
+ "Priority" => {
+ "name" => "Priority",
+ "isPrivate" => false,
+ "visibleByDefault" => true,
+ "autoAttached" => true,
+ "type" => "enum[1]",
+ "attachBundlePolicy" => 0,
+ "defaultBundle" => "Priorties",
+ },
+ "State" => {
+ "name" => "State",
+ "isPrivate" => false,
+ "visibleByDefault" => true,
+ "autoAttached" => true,
+ "type" => "state[1]",
+ "attachBundlePolicy" => 0,
+ "defaultBundle" => "States",
+ },
+ "Subsystem" => {
+ "name" => "Subsystem",
+ "isPrivate" => false,
+ "visibleByDefault" => true,
+ "autoAttached" => true,
+ "type" => "ownedField[1]",
+ "attachBundlePolicy" => 1,
+ "defaultBundle" => "Subsystems",
+ },
+ "Fixed in build" => {
+ "name" => "Fixed in build",
+ "isPrivate" => false,
+ "visibleByDefault" => true,
+ "autoAttached" => true,
+ "type" => "build[1]",
+ "attachBundlePolicy" => 1,
+ "defaultBundle" => "Builds",
+ },
+ "Assignee" => {
+ "name" => "Assignee",
+ "isPrivate" => false,
+ "visibleByDefault" => true,
+ "autoAttached" => true,
+ "type" => "user[1]",
+ },
+ "Affected versions" => {
+ "name" => "Affected versions",
+ "isPrivate" => false,
+ "visibleByDefault" => true,
+ "autoAttached" => true,
+ "type" => "version[*]",
+ "attachBundlePolicy" => 1,
+ "defaultBundle" => "Versions",
+ },
+ "Fix versions" => {
+ "name" => "Fix Versions",
+ "isPrivate" => false,
+ "visibleByDefault" => true,
+ "autoAttached" => true,
+ "type" => "version[*]",
+ "attachBundlePolicy" => 1,
+ "defaultBundle" => "Versions",
+ },
+ "Due Date" => {
+ "name" => "Due Date",
+ "isPrivate" => false,
+ "visibleByDefault" => true,
+ "autoAttached" => true,
+ "type" => "date",
+ },
}
}
}
end