This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/integrity/builder.rb b/lib/integrity/builder.rb | |
index 4b6ffa3..af90c8a 100644 | |
--- a/lib/integrity/builder.rb | |
+++ b/lib/integrity/builder.rb | |
@@ -37,6 +37,9 @@ module Integrity | |
def complete | |
Integrity.log "Build #{commit} exited with #{@status} got:\n #{@output}" | |
+ # Remove invalid UTF8, see http://po-ru.com/diary/fixing-invalid-utf-8-in-ruby-revisited/ | |
+ @output = (Iconv.iconv('UTF-8//IGNORE', 'UTF-8', @output).first + ' ')[0..-2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SpecPageRefresh | |
class SpecPageRefreshMatcher | |
include Merb::Test::ViewHelper | |
def matches?(response) | |
response.should have_selector('form.hidden_refresh') | |
rescue Spec::Expectations::ExpectationNotMetError | |
false | |
end | |
NewerOlder