Created
February 17, 2012 00:51
-
-
Save douglascamata/1849308 to your computer and use it in GitHub Desktop.
erro estranho
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scenario "Relacionar professor com turmas", :driver => :selenium do | |
periodo_letivo = PeriodoLetivo.create! :sigla => '2012/1', :inicio => Date.today, :termino => Date.tomorrow | |
professor = Professor.create! :nome => 'Senhor Professor', :email => 'professor@internet.com', :password => 'password' | |
visit new_disciplina_path | |
logar_admin('admin@test.com', '123456') | |
fill_in :nome, with: 'Calculo' | |
fill_in :credito, with: 4 | |
page.driver.browser.save_screenshot 'screenshot.png' | |
select '2012/1' , from: 'Periodo letivos' | |
click_button 'Create Disciplina' | |
page.should have_content 'Disciplina was successfully created.' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment