flowerbox/lib/flowerbox.rb

39 lines
702 B
Ruby
Raw Normal View History

2012-02-22 16:47:07 +00:00
require "flowerbox/version"
module Flowerbox
module Runner
autoload :Node, 'flowerbox/runner/node'
2012-02-23 21:12:00 +00:00
autoload :Selenium, 'flowerbox/runner/selenium'
autoload :Base, 'flowerbox/runner/base'
2012-02-22 16:47:07 +00:00
end
class << self
def spec_patterns
@spec_patterns ||= []
end
def asset_paths
@asset_paths ||= []
end
def test_with(what)
2012-02-23 21:12:00 +00:00
require "flowerbox/test_environment/#{what}"
2012-02-22 16:47:07 +00:00
end
2012-02-23 21:12:00 +00:00
def run_with(what)
require "flowerbox/runner/#{what}"
end
2012-02-22 16:47:07 +00:00
2012-02-23 21:12:00 +00:00
def path
Pathname(File.expand_path('../..', __FILE__))
2012-02-22 16:47:07 +00:00
end
2012-02-23 21:12:00 +00:00
attr_accessor :test_environment, :runner_environment, :bare_coffeescript
2012-02-22 16:47:07 +00:00
def configure
yield self
end
end
end