Sha256: 89b3cbae3c02b5b5deb3346aed076cb43cb35d7c16256d233c7241c97465994c

Contents?: true

Size: 312 Bytes

Versions: 15

Compression:

Stored size: 312 Bytes

Contents

require 'spec_helper'

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 spec/server/rack/rack_requests_spec.rb
volt-0.9.7.pre7 spec/server/rack/rack_requests_spec.rb
volt-0.9.7.pre6 spec/server/rack/rack_requests_spec.rb
volt-0.9.7.pre5 spec/server/rack/rack_requests_spec.rb
volt-0.9.7.pre3 spec/server/rack/rack_requests_spec.rb
volt-0.9.7.pre2 spec/server/rack/rack_requests_spec.rb
volt-0.9.6 spec/server/rack/rack_requests_spec.rb
volt-0.9.6.pre3 spec/server/rack/rack_requests_spec.rb
volt-0.9.6.pre2 spec/server/rack/rack_requests_spec.rb
volt-0.9.6.pre1 spec/server/rack/rack_requests_spec.rb
volt-0.9.5 spec/server/rack/rack_requests_spec.rb
volt-0.9.5.pre12 spec/server/rack/rack_requests_spec.rb
volt-0.9.5.pre11 spec/server/rack/rack_requests_spec.rb
volt-0.9.5.pre9 spec/server/rack/rack_requests_spec.rb
volt-0.9.5.pre8 spec/server/rack/rack_requests_spec.rb