* fix teacher signup page
This commit is contained in:
parent
e07bc21d2a
commit
d46e8ed874
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue