Skip to content

Commit

Permalink
fix more rspec issues
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Mar 22, 2018
1 parent f272257 commit 497c581
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/mdm/host/operating_system_normalization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ def guess_purpose_from_match(match)
i.each_char do |j|
begin
pstr << j.downcase.encode("UTF-8")
rescue Encoding::UndefinedConversionError => e
rescue Encoding::UndefinedConversionError
# rescue Encoding::UndefinedConversionError => e
# this works in Framework, but causes a Travis CI error
# elog("Found incompatible (non-ANSI) character in guess_purpose_from_match")
end
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
config.eager_load = false

# Configure static asset server for tests with Cache-Control for performance.
config.serve_static_assets = true
config.serve_static_files = true
config.static_cache_control = 'public, max-age=3600'

# Show full error reports and disable caching.
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
# # don't generate local report as it is inaccessible on travis-ci, which is why coveralls is being used.
# SimpleCov.formatter = Coveralls::SimpleCov::Formatter
# else
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
# either generate the local report
SimpleCov::Formatter::HTMLFormatter
]
])
# end

require File.expand_path('../dummy/config/environment.rb', __FILE__)
Expand Down

0 comments on commit 497c581

Please sign in to comment.