Class: Jax::SuiteController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/jax/suite_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
# File 'app/controllers/jax/suite_controller.rb', line 5

def index
  redirect_to :action => :run_webgl
end

#jasmineObject



9
10
11
12
# File 'app/controllers/jax/suite_controller.rb', line 9

def jasmine
  # order helpers before specs
  @specs = helpers + specs
end

#specObject



14
15
16
# File 'app/controllers/jax/suite_controller.rb', line 14

def spec
  render :text => Jax.config.specs[params[:id]].to_s
end