* fix teacher signup page

This commit is contained in:
Seth Call 2016-04-13 17:14:05 -05:00
parent e07bc21d2a
commit d46e8ed874
2 changed files with 8 additions and 1 deletions

View File

@ -1128,7 +1128,14 @@ module JamRuby
school_name = school ? school.name : 'a music school'
user.teacher = Teacher.build_teacher(user, validate_introduction: true, biography: "Teaches for #{school_name}", school_id: school_id)
end
else
if user.is_a_teacher
user.teacher = Teacher.build_teacher(user, validate_introduction: true, biography: "Empty biography")
end
end
# FIXME: Setting random password for social network logins. This
# is because we have validations all over the place on this.
# The right thing would be to have this null

View File

@ -1,6 +1,6 @@
require 'spec_helper'
describe "Student Landing", :js => true, :type => :feature, :capybara_feature => true do
describe "Teacher Landing", :js => true, :type => :feature, :capybara_feature => true do
subject { page }