10
Rayları test ediyorum rspec rayları ile 4.1.0 uygulaması 3.0.1. rspec komutu, uygulamada kullandığım taşlar hakkında çok sayıda uyarı yazdırıyor. Aşağıdaki çıktının bir kısmını dahil ettim. Bunu baskılamanın mümkün olup olmadığını bilmek istiyorum.Rspec rayları çok fazla uyarı yazdırıyor
/home/indika/Documents/rails/news_app/config/initializers/kramdown.rb:6: warning: method redefined; discarding old convert_img
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/kramdown-1.4.0/lib/kramdown/converter/html.rb:259: warning: previous definition of convert_img was here
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/mail-2.5.4/lib/mail/network/delivery_methods/sendmail.rb:53: warning: shadowing outer local variable - to
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/home/indika/Documents/rails/news_app/spec/factories/news_articles.rb:1: warning: method redefined; discarding old ruby_iterator_code
/home/indika/Documents/rails/news_app/spec/factories/news_articles.rb:1: warning: previous definition of ruby_iterator_code was here
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/database_cleaner-1.3.0/lib/database_cleaner/configuration.rb:45: warning: instance variable @cleaners not initialized
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rouge-1.5.1/lib/rouge/regex_lexer.rb:136: warning: instance variable @loaded not initialized
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rouge-1.5.1/lib/rouge/regex_lexer.rb:136: warning: instance variable @loaded not initialized
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rouge-1.5.1/lib/rouge/regex_lexer.rb:136: warning: instance variable @loaded not initialized
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/kramdown-1.4.0/lib/kramdown/parser/kramdown/link.rb:18: warning: character class has duplicated range: /[\s\n]+/
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rouge-1.5.1/lib/rouge/regex_lexer.rb:136: warning: instance variable @loaded not initialized
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/capybara-2.4.1/lib/capybara/queries/text_query.rb:26: warning: instance variable @type not initialized
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/capybara-2.4.1/lib/capybara/queries/text_query.rb:26: warning: instance variable @type not initialized
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/capybara-2.4.1/lib/capybara/queries/text_query.rb:26: warning: instance variable @type not initialized
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/capybara-2.4.1/lib/capybara/queries/text_query.rb:26: warning: instance variable @type not initialized
./home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/capybara-2.4.1/lib/capybara/queries/text_query.rb:26: warning: instance variable @type not initialized
/home/indika/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/capybara-2.4.1/lib/capybara/queries/text_query.rb:26: warning: instance variable @type not initialized
.
Finished in 0.55369 seconds (files took 4.56 seconds to load)
2 examples, 0 failures
Teşekkür yapacağını sizin
.rspec
dosyadan--warnings
seçeneği kaldırarak. Çalıştı. Bunun, sınama yaptığım kod için hata iletilerini kaldırmayacağını varsayabilir miyim. –Uyarıların devre dışı bırakılması standart bir çözüm değil, bir istisna olmalıdır! – schmijos
@JosuaSchmid Standart çözümü gönderirseniz çok memnun olurum. – tkymtk