skipping the testing of a method bit me. d'oh

This commit is contained in:
John Bintz 2013-04-26 10:47:41 -04:00
parent 730a595be2
commit 8cd7e10604
2 changed files with 7 additions and 1 deletions

View File

@ -16,7 +16,7 @@ module Rack
end end
def skip_processing? def skip_processing?
!html? || event_stream? || chunked? || inline? || ignored? || bad_browser? !html? || chunked? || inline? || ignored? || bad_browser?
end end
def chunked? def chunked?

View File

@ -12,6 +12,12 @@ describe Rack::LiveReload::ProcessingSkipAnalyzer do
let(:headers) { {} } let(:headers) { {} }
let(:body) { [] } let(:body) { [] }
describe '#skip_processing?' do
it "should skip processing" do
subject.skip_processing?.should be_true
end
end
describe '#bad_browser?' do describe '#bad_browser?' do
let(:user_agent) { described_class::BAD_USER_AGENTS.first.source } let(:user_agent) { described_class::BAD_USER_AGENTS.first.source }