spec/rack/livereload_spec.rb in rack-livereload-0.3.15 vs spec/rack/livereload_spec.rb in rack-livereload-0.3.16
- old
+ new
@@ -5,11 +5,13 @@
let(:middleware) { described_class.new(app, options) }
let(:app) { stub }
subject { middleware }
- its(:app) { should == app }
+ it 'should be an app' do
+ middleware.app.should be == app
+ end
let(:env) { {} }
let(:options) { {} }
context '/__rack/livereload.js' do
@@ -18,10 +20,10 @@
before do
middleware.expects(:deliver_file).returns(true)
end
it 'should return the js file' do
- middleware._call(env).should be_true
+ middleware._call(env).should be_truthy
end
end
end