Skip to content

Commit

Permalink
Ensure dependencies are loaded
Browse files Browse the repository at this point in the history
Fixes #33, #34 so that specs can be run independently.
  • Loading branch information
halostatue committed Jan 11, 2017
1 parent ad95475 commit 0ee04dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/hunk_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
require 'spec_helper'

if String.method_defined?(:encoding)
require 'diff/lcs/hunk'

describe Diff::LCS::Hunk do
let(:old_data) { ["Tu avec carté {count} itém has".encode('UTF-16LE')] }
let(:new_data) { ["Tu avec carte {count} item has".encode('UTF-16LE')] }
Expand Down

0 comments on commit 0ee04dc

Please sign in to comment.