-
-
Save rinaldifonseca/3178815 to your computer and use it in GitHub Desktop.
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
[cmilfont@milfont:/Users/cmilfont/projetos/forteschat3/oraculo:homologacao:a1a293f:+M] | |
$ rspec spec/integration/chamado_spec.rb -e "Deveria submeter a dúvida para a tela de Faqs" | |
Run filtered including {:full_description=>/(?-mix:Deveria\ submeter\ a\ dúvida\ para\ a\ tela\ de\ Faqs)/} | |
Chamado | |
Como cliente | |
Pagina inicial | |
DEPRECATION WARNING: <% %> style block helpers are deprecated. Please use <%= %>. (called from _app_views_chamados_index_html_erb__1905729048714370975_2183758900_2238918427965469768 at /Users/cmilfont/projetos/forteschat3/oraculo/app/views/chamados/index.html.erb:40) | |
http://127.0.0.1:51920/javascripts/vendor/jquery-1.7.1.min.js:4 TypeError: Result of expression 'o' [null] is not an object. | |
Deveria submeter a dúvida para a tela de Faqs (FAILED - 1) | |
Failures: | |
1) Chamado Como cliente Pagina inicial Deveria submeter a dúvida para a tela de Faqs | |
Failure/Error: visit "/cliente/matriz/000436/0002" | |
Capybara::Driver::Webkit::WebkitInvalidResponseError: | |
Unable to load URL: http://127.0.0.1:51920/cliente/matriz/000436/0002 | |
# ./spec/integration/chamado_spec.rb:19:in `block (4 levels) in <top (required)>' | |
Finished in 16.51 seconds | |
1 example, 1 failure | |
Failed examples: | |
rspec ./spec/integration/chamado_spec.rb:18 # Chamado Como cliente Pagina inicial Deveria submeter a dúvida para a tela de Faqs | |
Coverage report Rcov style generated for /tmp/textmate-command-38681.rb , RSpec to /Users/cmilfont/projetos/forteschat3/oraculo/coverage/rcov |
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
require File.expand_path(File.dirname(__FILE__) + "/spec_helper") | |
# Put your acceptance spec helpers inside /spec/acceptance/support | |
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } | |
require 'capybara/rails' | |
require 'capybara/rspec' | |
Capybara.configure do |config| | |
#config.default_driver = ENV['SELENIUM'] ? :selenium : :webkit | |
config.default_driver = :webkit | |
end | |
RSpec.configure do |config| | |
config.include Capybara::DSL | |
#config.include ActionController::UrlWriter | |
config.use_transactional_fixtures = false | |
config.before :each do | |
DatabaseCleaner.strategy = :truncation | |
DatabaseCleaner.clean | |
end | |
end |
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
it "Deveria submeter a dúvida para a tela de Faqs" do | |
visit "/cliente/matriz/000436/0002" | |
select("AG", :from => 'Sistema') | |
fill_in('Descrição da dúvida', :with => "Contas a pagar") | |
fill_in('Como deseja ser chamado', :with => "Milfont") | |
click_button('Iniciar Chamado') | |
current_path.should == faq_chamados_path | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment