Sha256: 7bff9ccfd62962a611511ef300dd914aa056a512c0bc1aa6e3cf2e2e01c070d8
Contents?: true
Size: 586 Bytes
Versions: 1
Compression:
Stored size: 586 Bytes
Contents
require 'test_helper' require 'action_controller' require 'myth-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 "myth views are served as css" do get "/site/index.css" assert_match File.read(File.expand_path("../support", __FILE__) + "/site/expected.css"), last_response.body end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
myth-rails-1.0.1 | test/template_handler_test.rb |