RSpec modernization fixes.

This commit is contained in:
John Bintz 2015-07-03 12:20:54 -04:00
parent ef3895cbcf
commit d06a756c8d
3 changed files with 6 additions and 4 deletions

View File

@ -15,7 +15,7 @@ describe Rack::LiveReload::BodyProcessor do
end
it 'responds false when no head tag' do
regex.match("<header></header>").should be_false
regex.match("<header></header>").should be_falsey
end
end

View File

@ -14,7 +14,7 @@ describe Rack::LiveReload::ProcessingSkipAnalyzer do
describe '#skip_processing?' do
it "should skip processing" do
subject.skip_processing?.should be_true
subject.skip_processing?.should be_truthy
end
end

View File

@ -7,7 +7,9 @@ describe Rack::LiveReload do
subject { middleware }
its(:app) { should == app }
it 'should be an app' do
middleware.app.should be == app
end
let(:env) { {} }
let(:options) { {} }
@ -20,7 +22,7 @@ describe Rack::LiveReload do
end
it 'should return the js file' do
middleware._call(env).should be_true
middleware._call(env).should be_truthy
end
end
end