Jasminerice::Engine.routes.draw do
  resources :spec, :controller => 'spec', :only => [:index] do
    get "fixtures/*filename", :action => :fixtures
  end
  match "fixtures/*filename", :to => "spec#fixtures"
  match "/(:suite)", :to => "spec#index", defaults: { suite: nil }
end

if Jasminerice.mount
  Rails.application.routes.draw do
    mount Jasminerice::Engine => Jasminerice.mount_at
  end
end

Jasminerice::Engine.routes.draw do
  resources :spec, :controller => 'spec', :only => [:index] do
    get "fixtures/*filename", :action => :fixtures
  end
  get "fixtures/*filename", :to => "spec#fixtures"
  get "/(:suite)", :to => "spec#index", defaults: { suite: nil }
end

if Jasminerice.mount
  Rails.application.routes.draw do
    mount Jasminerice::Engine => Jasminerice.mount_at
  end
end

Support Rails 4 style routing.
Support Rails 4 style routing.
