Sha256: c88295234bedda3abb5746dc6d07452324594fd57dfb9e4218bdeb8b605b5a1e

Contents?: true

Size: 288 Bytes

Versions: 18

Compression:

Stored size: 288 Bytes

Contents

if ENV['BROWSER'] && ENV['BROWSER'] == 'phantom'
  describe 'Rack Requests', type: :feature do
    it "should send JS file with JS mimetype" do
      visit '/components/main.js'

      expect( page.response_headers[ 'Content-Type' ]).to include 'application/javascript'
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
volt-0.8.15 spec/server/rack/rack_requests_spec.rb
volt-0.8.14 spec/server/rack/rack_requests_spec.rb
volt-0.8.13 spec/server/rack/rack_requests_spec.rb
volt-0.8.11 spec/server/rack/rack_requests_spec.rb
volt-0.8.10 spec/server/rack/rack_requests_spec.rb
volt-0.8.9 spec/server/rack/rack_requests_spec.rb
volt-0.8.8 spec/server/rack/rack_requests_spec.rb
volt-0.8.7 spec/server/rack/rack_requests_spec.rb
volt-0.8.6 spec/server/rack/rack_requests_spec.rb
volt-0.8.5 spec/server/rack/rack_requests_spec.rb
volt-0.8.4 spec/server/rack/rack_requests_spec.rb
volt-0.8.3 spec/server/rack/rack_requests_spec.rb
volt-0.8.2 spec/server/rack/rack_requests_spec.rb
volt-0.8.1 spec/server/rack/rack_requests_spec.rb
volt-0.8.0 spec/server/rack/rack_requests_spec.rb
volt-0.7.23 spec/server/rack/rack_requests_spec.rb
volt-0.7.22 spec/server/rack/rack_requests_spec.rb
volt-0.7.21 spec/server/rack/rack_requests_spec.rb