Sha256: 97d223009b843a15622ca3ae5854ae9f0d30f7b108b0db5cf348ce7c6fe3c738

Contents?: true

Size: 547 Bytes

Versions: 26

Compression:

Stored size: 547 Bytes

Contents

require 'test_helper'
require 'action_controller'
require 'coffee-rails'

class SiteController < ActionController::Base
  self.view_paths = File.expand_path("../support", __FILE__)
end

DummyApp = ActionDispatch::Routing::RouteSet.new
DummyApp.draw do
  get "site/index"
end

class TemplateHandlerTest < ActiveSupport::TestCase
  include Rack::Test::Methods

  def app
    @app ||= DummyApp
  end

  test "coffee views are served as javascript" do
    get "/site/index.js"

    assert_match "alert('hello world');\n", last_response.body
  end
end

Version data entries

26 entries across 25 versions & 6 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/coffee-rails-4.1.0/test/template_handler_test.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/coffee-rails-4.1.0/test/template_handler_test.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/coffee-rails-4.1.0/test/template_handler_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/coffee-rails-4.0.1/test/template_handler_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/coffee-rails-4.1.0/test/template_handler_test.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/test/template_handler_test.rb
coffee-rails-4.1.0 test/template_handler_test.rb
coffee-rails-4.0.1 test/template_handler_test.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/test/template_handler_test.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/test/template_handler_test.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/test/template_handler_test.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/test/template_handler_test.rb
coffee-rails-4.0.0 test/template_handler_test.rb
coffee-rails-4.0.0.beta1 test/template_handler_test.rb
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/test/template_handler_test.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/test/template_handler_test.rb
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/test/template_handler_test.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/test/template_handler_test.rb
coffee-redux-rails-4.0.0.beta test/template_handler_test.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/test/template_handler_test.rb