class TestsController
Public Instance Methods
index()
click to toggle source
# File lib/rails/specter/application/app/controllers/tests_controller.rb, line 4 def index @directories = Specter::Engine.paths['test/javascript'].existent.map do |dir| Pathname.new(dir) end.select do |dir| test = Specter::Test.new(Pathname.new(dir)) test.valid? end end
run()
click to toggle source
# File lib/rails/specter/application/app/controllers/tests_controller.rb, line 21 def run directory = Specter::Engine.paths['test/javascript'].existent.select do |dir| Pathname.new(dir).basename.to_s === params[:id] end.first @test = Specter::Test.new(Pathname.new(directory)) end
show()
click to toggle source
# File lib/rails/specter/application/app/controllers/tests_controller.rb, line 13 def show directory = Specter::Engine.paths['test/javascript'].existent.select do |dir| Pathname.new(dir).basename.to_s === params[:id] end.first @test = Specter::Test.new(Pathname.new(directory)) end