Skip to content

Commit

Permalink
Cast member_of_my_team to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
sdavies committed Dec 20, 2016
1 parent 5657597 commit 47cb948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/dotloop/models/participant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module Models
class Participant
include Virtus.model
attribute :email
attribute :member_of_my_team
attribute :name, Boolean
attribute :member_of_my_team, Boolean
attribute :name
attribute :participant_id, Integer
attribute :role
end
Expand Down
2 changes: 1 addition & 1 deletion spec/dotloop/participant_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
expect(participants).to all(be_a(Dotloop::Models::Participant))
expect(participants.first).to have_attributes(
email: 'new2_person@email.com',
member_of_my_team: 'N',
member_of_my_team: false,
name: 'New Person',
participant_id: 3_600_616,
role: 'None'
Expand Down

0 comments on commit 47cb948

Please sign in to comment.