Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make autotest work.

  • Loading branch information...
commit 8e1ba100554c8baa2e4f1c20ad6cd7cda7ef2791 1 parent ae3f5c2
@mcolyer authored
View
7 .autotest
@@ -0,0 +1,7 @@
+# Hack to work around https://github.com/dchelimsky/rspec/issues#issue/7
+class Autotest::Rspec2 < Autotest
+ def make_test_cmd(files_to_test)
+ files_to_test.empty? ? '' :
+ "bundle exec rspec --tty #{normalize(files_to_test).keys.flatten.map { |f| "'#{f}'"}.join(' ')}"
+ end
+end
View
1  .rspec
@@ -0,0 +1 @@
+--color
View
2  Rakefile
@@ -48,7 +48,7 @@ task :default => :test
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
- test.pattern = 'specs/**/*_spec.rb'
+ test.pattern = 'spec/**/*_spec.rb'
test.verbose = true
end
View
2  smartermeter.gemspec
@@ -95,5 +95,5 @@ Gem::Specification.new do |s|
## Test files will be grabbed from the file list. Make sure the path glob
## matches what you actually use.
- s.test_files = s.files.select { |path| path =~ /^specs\/*_spec.rb/ }
+ s.test_files = s.files.select { |path| path =~ /^spec\/*_spec.rb/ }
end
View
0  specs/fixtures/data.csv → spec/fixtures/data.csv
File renamed without changes
View
0  specs/fixtures/expected_google_request.xml → spec/fixtures/expected_google_request.xml
File renamed without changes
View
0  specs/sample_spec.rb → spec/sample_spec.rb
File renamed without changes
View
0  specs/service_spec.rb → spec/service_spec.rb
File renamed without changes
View
0  specs/spec_helper.rb → spec/spec_helper.rb
File renamed without changes
View
0  specs/transports/google_powermeter_spec.rb → spec/transports/google_powermeter_spec.rb
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.