Sha256: 3d3d93173dd850506f1674ffca586526b49640a177451d9bd55dc173e50a6258

Contents?: true

Size: 770 Bytes

Versions: 2

Compression:

Stored size: 770 Bytes

Contents

module Jasminerice
  class SpecController < Jasminerice::ApplicationController
    warn "Using Jasminerice::HelperMethods is deprecated and will be removed in a future release,"\
        "please use Jasminerice::SpecHelper to define your helpers in the future" if defined?(Jasminerice::HelperMethods)

    helper Jasminerice::HelperMethods rescue nil
    helper Jasminerice::SpecHelper rescue nil

    before_filter { prepend_view_path Rails.root.to_s }

    layout false

    def index
      @specsuite = params[:suite].try(:concat, "_spec") || "spec"
      @asset_options = %w(true false).include?(params[:debug]) ? { :debug => params[:debug] == 'true' } : {}
    end

    def fixtures
      render "#{Jasminerice.fixture_path}/#{params[:filename]}"
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
brainsome_jasminerice-0.1.0 app/controllers/jasminerice/spec_controller.rb
better_jasminerice-0.2.0 app/controllers/jasminerice/spec_controller.rb