Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/config/specification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ expense_budgets:
- description
- expected_by
- expense_ids
- external_reference_ids
- fixed_fee
- fixed_fee_item_ids
- story_id
Expand All @@ -741,6 +742,7 @@ expense_budgets:
- cost_per_unit_in_subunits
- description
- expected_by
- external_reference
- fixed_fee
- story_id
- title
Expand All @@ -751,6 +753,7 @@ expense_budgets:
- cost_per_unit_in_subunits
- description
- expected_by
- external_reference
- fixed_fee
- story_id
- title
Expand All @@ -767,6 +770,9 @@ expense_budgets:
story:
foreign_key: story_id
collection: stories
external_references:
foreign_key: external_reference_ids
collection: external_references

expenses:
validations:
Expand Down
5 changes: 3 additions & 2 deletions spec/lib/mavenlink/expense_budget_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@
it { is_expected.to respond_to :story_id }
it { is_expected.to respond_to :title }
it { is_expected.to respond_to :workspace_id }
it { is_expected.to respond_to :external_reference_ids }
end

describe ".create_attributes" do
let(:subject) { described_class.create_attributes }

it "includes expected attributes" do
is_expected.to match_array(%w[billable burns_budget cost_per_unit_in_subunits description expected_by fixed_fee story_id title workspace_id])
is_expected.to match_array(%w[billable burns_budget cost_per_unit_in_subunits description expected_by fixed_fee story_id title workspace_id external_reference])
end
end

describe ".update_attributes" do
let(:subject) { described_class.update_attributes }

it "includes expected attributes" do
is_expected.to match_array(%w[billable burns_budget cost_per_unit_in_subunits description expected_by fixed_fee story_id title])
is_expected.to match_array(%w[billable burns_budget cost_per_unit_in_subunits description expected_by fixed_fee story_id title external_reference])
end
end
end
Loading