skipping the testing of a method bit me. d'oh
This commit is contained in:
parent
730a595be2
commit
8cd7e10604
@ -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?
|
||||||
|
@ -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 }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user