Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
1  redistat.gemspec
@@ -27,4 +27,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake', '>= 0.8.7'
s.add_development_dependency 'rspec', '>= 2.1.0'
s.add_development_dependency 'yard', '>= 0.6.3'
+ s.add_development_dependency 'simplecov', '>= 0.6.1'
end
View
6 spec/spec_helper.rb
@@ -2,6 +2,12 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+require 'simplecov'
+SimpleCov.start do
+ add_filter '/spec'
+ add_filter '/vendor'
+end
+
# require stuff
require 'redistat'
require 'rspec'
View
5 spec/synchronize_spec.rb
@@ -53,7 +53,10 @@
}
@obj.thread_safe.should be_false # first synchronize call
Redistat::Synchronize.thread_safe = true # second synchronize call
- @obj.synchronize { 'foo' } # two synchronize calls, once while checking thread_safe, once to call black
+ # two synchronize calls, once while checking thread_safe, once to call black
+ @obj.synchronize do
+ 'foo'
+ end
end
end

No commit comments for this range

Something went wrong with that request. Please try again.