Skip to content

Commit

Permalink
drop Ruby 1.8 conditions and rcov
Browse files Browse the repository at this point in the history
With the introduction of respond_to_missing? in
c17e20e, we no longer support Ruby 1.8.

Remove rcov, and unconditionally load simplecov.
  • Loading branch information
ktdreyer committed Oct 23, 2013
1 parent e11a3dd commit 20bbf3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Expand Up @@ -9,5 +9,4 @@ gem "virtus", :git => "https://github.com/solnic/virtus.git"
gem "activemodel"

gem "ci_reporter"
gem "rcov", :platforms => :ruby_18
gem "simplecov", :platforms => :ruby_19
gem "simplecov"
9 changes: 0 additions & 9 deletions Rakefile
Expand Up @@ -6,13 +6,4 @@ Rake::TestTask.new(:test) do |test|
test.pattern = "test/**/*_test.rb"
end

if RUBY_VERSION < "1.9"
require "rcov/rcovtask"
Rcov::RcovTask.new do |t|
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]
t.rcov_opts += %w{--exclude gems}
end
end

task :default => :test
6 changes: 2 additions & 4 deletions test/test_helper.rb
Expand Up @@ -22,10 +22,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#++
if RUBY_VERSION > "1.9"
require "simplecov"
SimpleCov.start
end
require "simplecov"
SimpleCov.start

require "bundler/setup"
require "minitest/autorun"
Expand Down

0 comments on commit 20bbf3c

Please sign in to comment.