Skip to content

Commit ae26aa6

Browse files
authored
add address attribute to employee model
2 parents 33dd138 + ee47102 commit ae26aa6

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/booker/v4/models/employee.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ class Employee < Model
66
'FirstName',
77
'LastName',
88
'Gender',
9-
'MobilePhone'
9+
'MobilePhone',
10+
'Address'
1011
end
1112
end
1213
end

lib/booker/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Booker
2-
VERSION = '3.4.0'
2+
VERSION = '3.4.1'
33
end

spec/lib/booker/v4/models/employee_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
it { is_expected.to be_a Booker::V4::Models::Model }
55

66
it 'has the correct attributes' do
7-
['ID', 'FirstName', 'LastName', 'Gender', 'MobilePhone'].each do |attr|
7+
%w[ID FirstName LastName Gender MobilePhone Address].each do |attr|
88
expect(subject).to respond_to(attr)
99
end
1010
end

0 commit comments

Comments
 (0)