Skip to content

Commit

Permalink
Merge pull request #64 from stormz/fix_tests
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
Lukas Alexandre authored Dec 13, 2017
2 parents 410325f + 308a46a commit 8f57613
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions spec/document_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'spec_helper'
require 'securerandom'

describe Htmltoword::Document do
describe "local_images" do
@@ -33,8 +34,8 @@
expect(zip_file.glob('word/media/*').size).to eq 6
end
ensure
#File.delete(tmp_path(filename))
File.delete(tmp_path(filename))
end
end
end
end
end
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@
include Htmltoword::TemplatesHelper

def compare_transformed_files(test, test_file_name, extras: false)
source = File.read(fixture_path(test, test_file_name, :html))
expected_content = File.read(fixture_path(test, test_file_name, :xml))
source = File.read(fixture_path(test, test_file_name, :html), encoding: 'utf-8')
expected_content = File.read(fixture_path(test, test_file_name, :xml), encoding: 'utf-8')
compare_resulting_wordml_with_expected(source, expected_content, extras: extras)
end

0 comments on commit 8f57613

Please sign in to comment.