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/branch_spec.rb | |
parent | 7648f113814a78ffde802172197ba2b0074ec753 (diff) |
Add a UTF-8 encoding matcher
Diffstat (limited to 'spec/lib/gitlab/git/branch_spec.rb')
-rw-r--r-- | spec/lib/gitlab/git/branch_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/git/branch_spec.rb b/spec/lib/gitlab/git/branch_spec.rb index 9dba4397e79..d1d7ed1d02a 100644 --- a/spec/lib/gitlab/git/branch_spec.rb +++ b/spec/lib/gitlab/git/branch_spec.rb @@ -48,7 +48,7 @@ describe Gitlab::Git::Branch, seed_helper: true do expect(Gitlab::Git::Commit).to receive(:decorate) .with(hash_including(attributes)).and_call_original - expect(branch.dereferenced_target.message.encoding).to be(Encoding::UTF_8) + expect(branch.dereferenced_target.message).to be_utf8 end end |