Skip to content

Instantly share code, notes, and snippets.

@douglascamata
Created February 17, 2012 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglascamata/1849308 to your computer and use it in GitHub Desktop.
Save douglascamata/1849308 to your computer and use it in GitHub Desktop.
erro estranho
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