Class: Jasminerice::SpecController

Inherits:
ApplicationController show all
Defined in:
app/controllers/jasminerice/spec_controller.rb

Instance Method Summary collapse

Instance Method Details

#fixturesObject



18
19
20
# File 'app/controllers/jasminerice/spec_controller.rb', line 18

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

#indexObject



13
14
15
16
# File 'app/controllers/jasminerice/spec_controller.rb', line 13

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