Skip to content

Commit

Permalink
Added speaker bio to session endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyhelbling committed Apr 15, 2016
1 parent 72b5f58 commit ed7cf7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/models/sessions_json_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def to_hash(session)
presenter_twitter_handle: s.participant.twitter_handle,
presenter_github_username: s.participant.github_profile_username,
presenter_github_og_image: s.participant.github_og_image,
presenter_bio: s.participant.bio,
session_title: s.title,
summary: s.summary,
description: s.description,
Expand Down
1 change: 1 addition & 0 deletions src/spec/factories/participant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
github_og_image "https://avatars1.githubusercontent.com/u/10186?v=3&s=400"
github_og_url "https://github.com/look"
twitter_handle "lof"
bio 'the man with the master plan'
end
end
end
2 changes: 2 additions & 0 deletions src/spec/models/sessions_json_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
expect(h[:presenter_twitter_handle]).to be session.participant.twitter_handle
expect(h[:presenter_github_username]).to be session.participant.github_profile_username
expect(h[:presenter_github_og_image]).to be session.participant.github_og_image
expect(session.participant.bio).to_not be_nil
expect(h[:presenter_bio]).to be session.participant.bio
expect(h[:session_title]).to be session.title
expect(h[:summary]).to be session.summary
expect(h[:description]).to be session.description
Expand Down

0 comments on commit ed7cf7a

Please sign in to comment.