Skip to content

Commit

Permalink
fix test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mose committed Jan 6, 2016
1 parent e83fb77 commit 8dd1cd5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'hieraviz'

require 'rack/test'
require 'rspec'

ENV['RACK_ENV'] = 'test'
ENV['HIERAVIZ_CONFIG_FILE'] = File.expand_path '../files/config.yml', __FILE__

if !ENV['BUILD']
require 'rubygems'
require 'bundler'
Expand All @@ -26,6 +22,11 @@
end
end

ENV['RACK_ENV'] = 'test'
ENV['HIERAVIZ_CONFIG_FILE'] = File.expand_path '../files/config.yml', __FILE__

require 'hieraviz'

RSpec.configure do |config|
config.mock_with :rspec
config.expect_with :rspec do |c|
Expand Down

0 comments on commit 8dd1cd5

Please sign in to comment.