Sha256: ca7c3df7b103760ba3e7c9ef8b3543a22f81642b58b04e1918f637870351e152

Contents?: true

Size: 535 Bytes

Versions: 4

Compression:

Stored size: 535 Bytes

Contents

require 'spec_helper'
module Alf
  module Repl
    describe Service, "assets" do
      include ::Rack::Test::Methods

      def app
        Service
      end

      it 'serves css correctly' do
        get '/assets/style.css'
        last_response.should be_ok
        last_response.content_type.should =~ /text\/css/
      end

      it 'serves js correctly' do
        get '/assets/application.js'
        last_response.should be_ok
        last_response.content_type.should =~ /application\/javascript/
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-repl-0.16.3 spec/service/test_assets.rb
alf-repl-0.16.2 spec/service/test_assets.rb
alf-repl-0.16.1 spec/service/test_assets.rb
alf-repl-0.16.0 spec/service/test_assets.rb