diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-06-28 18:44:37 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-06-30 15:32:42 +0300 |
commit | 8a62f304ef541b93ac47dab3b69b645f2b65537a (patch) | |
tree | 63c5f9f2f610962e0afc192fb45f307b8213aaae /spec/lib/gitlab/git/blame_spec.rb | |
parent | 7648f113814a78ffde802172197ba2b0074ec753 (diff) |
Add a UTF-8 encoding matcher
Diffstat (limited to 'spec/lib/gitlab/git/blame_spec.rb')
-rw-r--r-- | spec/lib/gitlab/git/blame_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/lib/gitlab/git/blame_spec.rb b/spec/lib/gitlab/git/blame_spec.rb index 8b041ac69b1..66c016d14b3 100644 --- a/spec/lib/gitlab/git/blame_spec.rb +++ b/spec/lib/gitlab/git/blame_spec.rb @@ -20,6 +20,7 @@ describe Gitlab::Git::Blame, seed_helper: true do expect(data.size).to eq(95) expect(data.first[:commit]).to be_kind_of(Gitlab::Git::Commit) expect(data.first[:line]).to eq("# Contribute to GitLab") + expect(data.first[:line]).to be_utf8 end end @@ -40,6 +41,7 @@ describe Gitlab::Git::Blame, seed_helper: true do expect(data.size).to eq(1) expect(data.first[:commit]).to be_kind_of(Gitlab::Git::Commit) expect(data.first[:line]).to eq("Ä ü") + expect(data.first[:line]).to be_utf8 end end @@ -61,6 +63,7 @@ describe Gitlab::Git::Blame, seed_helper: true do expect(data.size).to eq(1) expect(data.first[:commit]).to be_kind_of(Gitlab::Git::Commit) expect(data.first[:line]).to eq(" ") + expect(data.first[:line]).to be_utf8 end end end |