Skip to content

Commit

Permalink
Merge pull request #153 from zaikio/keyline-3514_Add_reference_to_ava…
Browse files Browse the repository at this point in the history
…ilability

Add reference attribute to Availability
  • Loading branch information
tosch authored Sep 19, 2023
2 parents ca2cce3 + bc898f2 commit b1c1f9d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.18.0]

- Add `reference` attribute to `Availability`

## [0.17.0]

- Add `reference` attribute to `Machine` and `Specialist`
Expand Down
2 changes: 1 addition & 1 deletion lib/zaikio/hub/availability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Availability < Base

attributes :machine_id, :mode, :starts_at, :ends_at, :date, :weekday, :reason, :capacity,
:description, :machine_id, :specialist_id, :created_at, :updated_at, :starts_at_hm,
:ends_at_hm
:ends_at_hm, :reference
end
end
end
2 changes: 1 addition & 1 deletion lib/zaikio/hub/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Zaikio
module Hub
VERSION = "0.17.0".freeze
VERSION = "0.18.0".freeze
end
end
6 changes: 4 additions & 2 deletions test/zaikio/hub_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ def default_headers(token)
starts_at: 34_200,
ends_at: 63_000,
weekday: "monday",
capacity: 1
capacity: 1,
reference: "122334"
} }.to_json)
.to_return(status: 201, body: {
"id" => "e0815217-be2f-436e-915a-67bec7faf010"
Expand All @@ -470,7 +471,8 @@ def default_headers(token)
starts_at: 34_200,
ends_at: 63_000,
weekday: "monday",
capacity: 1
capacity: 1,
reference: "122334"
)

assert_equal "e0815217-be2f-436e-915a-67bec7faf010", availability.id
Expand Down

0 comments on commit b1c1f9d

Please sign in to comment.