Sha256: 7b905a89ff078d66dea4d530e75aa60b4263403cc9ecc3bb6ad2ef78f038181c
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
require 'spec_helper' require 'nokogiri' describe Rack::LiveReload do let(:middleware) { described_class.new(app, options) } let(:app) { stub } subject { middleware } its(:app) { should == app } let(:env) { {} } let(:options) { {} } context '/__rack/livereload.js' do let(:env) { { 'PATH_INFO' => described_class::BodyProcessor::LIVERELOAD_JS_PATH } } before do middleware.expects(:deliver_file).returns(true) end it 'should return the js file' do middleware._call(env).should be_true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-livereload-0.3.15 | spec/rack/livereload_spec.rb |
rack-livereload-0.3.14 | spec/rack/livereload_spec.rb |