lib/snapdragon/cli_application.rb in snapdragon-0.1.3 vs lib/snapdragon/cli_application.rb in snapdragon-0.1.4

- old
+ new

@@ -54,18 +54,30 @@ @suite.add_spec_files(spec_dir.spec_files) end end def is_a_file_path_and_line_number?(arguement) - arguement =~ /^[\w\/\-\d]+[s|S]pec\.js:\d+$/ + if arguement =~ /^[\w\/\-\d\.]+[s|S]pec\.js:\d+$/ + return true + else + return false + end end def is_a_file_path?(arguement) - arguement =~ /^[\w\/\-\d]+[s|S]pec\.js$/ + if arguement =~ /^[\w\/\-\d\.]+[s|S]pec\.js$/ + return true + else + return false + end end def is_a_directory?(arguement) - arguement =~ /^[\w\/\-\d]+$/ + if arguement =~ /^[\w\/\-\d\.]+$/ + return true + else + return false + end end def run_suite session = Capybara::Session.new(:poltergeist, Snapdragon::WebApplication.new(nil, @suite)) if @suite.filtered?