Sha256: 112fda5d370c41ad00311ca0cb6d6508671830856380ea9650eff2fec21e38ce
Contents?: true
Size: 721 Bytes
Versions: 3
Compression:
Stored size: 721 Bytes
Contents
require 'spec_helper' require 'stringio' describe 'log note' do class ApplicationController < ActionController::Base end controller do def index Rails.logger.error 'foo' Rails.logger.warn 'bar' render :text => '<html><head></head><body></body></html>', :content_type => 'text/html' end end def page Capybara::Node::Simple.new(response.body) end before :all do Footnotes.enabled = true end after :all do Footnotes.enabled = false end it 'Includes the log in the response' do get :index log_debug = first('fieldset#log_debug_info div', :visible => false) log_debug.should have_content('foo') log_debug.should have_content('bar') end end
Version data entries
3 entries across 3 versions & 1 rubygems