diff options
author | beatrix-bitrot <beatrix.bitrot@gmail.com> | 2017-07-22 01:16:53 +0000 |
---|---|---|
committer | beatrix-bitrot <beatrix.bitrot@gmail.com> | 2017-07-22 01:16:53 +0000 |
commit | 984d2d4cb626dd3a4da707ecf1e8ad45b476d8fb (patch) | |
tree | 9a7ba46c448cca4a4a245224bf421941a33c263d /spec | |
parent | 0244019ca17288802a144c84b7e0f319f1685695 (diff) | |
parent | 8d6c3cd48ae4f96752ff6b698bc7244d97aa9a27 (diff) |
Merge that good fresh upstream shit
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/emoji_spec.rb | 15 | ||||
-rw-r--r-- | spec/services/resolve_remote_account_service_spec.rb | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/spec/lib/emoji_spec.rb b/spec/lib/emoji_spec.rb new file mode 100644 index 000000000..04931ccfb --- /dev/null +++ b/spec/lib/emoji_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +RSpec.describe Emoji do + describe '#unicode' do + it 'returns a unicode for a shortcode' do + expect(Emoji.instance.unicode(':joy:')).to eq '😂' + end + end + + describe '#names' do + it 'returns an array' do + expect(Emoji.instance.names).to be_an Array + end + end +end diff --git a/spec/services/resolve_remote_account_service_spec.rb b/spec/services/resolve_remote_account_service_spec.rb index ab5d3c6e5..c3b902b34 100644 --- a/spec/services/resolve_remote_account_service_spec.rb +++ b/spec/services/resolve_remote_account_service_spec.rb @@ -78,7 +78,7 @@ RSpec.describe ResolveRemoteAccountService do Thread.new do true while wait_for_start begin - return_values << subject.call('foo@localdomain.com') + return_values << ResolveRemoteAccountService.new.call('foo@localdomain.com') rescue ActiveRecord::RecordNotUnique fail_occurred = true end |