Skip to content

Commit

Permalink
Adds failing student profile model test that checks if the student pr…
Browse files Browse the repository at this point in the history
…ofile responds to skype username
  • Loading branch information
charlieperson committed Apr 26, 2016
1 parent 1d7c8c5 commit 280a5f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/dashboard/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<br>
<br>
Current teacher:
<br>
<% @student.current_teachers.each do |relationship| %>
Name:
<%= @teachers.find(relationship.teacher_id).teacher_profile.name %>
Expand Down
1 change: 1 addition & 0 deletions app/views/teacher_profiles/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Bio:
= @teacher.teacher_profile.bio
%br
Skype username:
= @teacher.teacher_profile.skype_username
%br
= link_to 'Edit profile', edit_teacher_profile_path(@teacher.teacher_profile.id)
Expand Down
1 change: 1 addition & 0 deletions spec/models/student_profile_model_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
it { is_expected.to respond_to(:name) }
it { is_expected.to respond_to(:native_language) }
it { is_expected.to respond_to(:learning_objectives) }
it { is_expected.to respond_to(:skype_username)}
end
context 'Student profile validations' do
it { should validate_presence_of(:name) }
Expand Down

0 comments on commit 280a5f2

Please sign in to comment.