lib/js_test_driver/config.rb in js-test-driver-rails-0.2.9 vs lib/js_test_driver/config.rb in js-test-driver-rails-0.3.0
- old
+ new
@@ -20,11 +20,11 @@
paths.each do |path|
self.included_files << File.expand_path(path)
end
end
- # Files specified here will not be loaded, it's useful when combined with globbing in includes
+ # Files specified here will not be loaded, it's useful when combined with globbing in includes
#
# paths should be relative to root_dir
def excludes(*paths)
paths.each do |path|
self.excluded_files << File.expand_path(path)
@@ -33,11 +33,11 @@
# Defines a browser to be captured by default
#
# This should be a string with no spaces (if you need to pass parameters to the browser you will
# need to create a shell script ans put it's name here)
- def browser(browsers)
+ def browser(*browsers)
browsers.each do |browser|
self.browsers << browser
end
end
@@ -48,16 +48,16 @@
#
# the fixtures will be accessible through:
# namespace.name["file_name_without the html extension"]
#
# by default the namespace is called htmlFixtures
- # and the fixture name is called all
+ # and the fixture name is called all
def fixtures(directory, opts = {})
fixture = JsTestDriver::HtmlFixture.new(directory, opts[:name], opts[:namespace])
if html_fixtures.detect{|f| f.name == fixture.name && f.namespace == fixture.namespace}
raise ArgumentError.new("Fixture #{fixture.namespace}.#{fixture.name} already defined!")
- end
+ end
html_fixtures << fixture
end
# Includes the bundled with the gem jasmine js file and an adapter for jasmine
#
@@ -184,9 +184,9 @@
def attributes=(values)
values.each do |attr, value|
self.send("#{attr}=", value)
end
- end
+ end
end
-end
\ No newline at end of file
+end