diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-09 20:04:34 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-09 20:04:34 +0200 |
commit | 3cc47beb6e1f646baca64fdf56168e2f2e2bc726 (patch) | |
tree | 295d9442bec8fa7434b6a2c37a6cb835a3725dfd /spec/helpers/atom_builder_helper_spec.rb | |
parent | 735b4cc62e3fb9ef7a10b657c8e437ac0cb3d1fe (diff) |
Refactored generation of unique tags, URIs and object URLs into own classes,
as well as formatting of content
Diffstat (limited to 'spec/helpers/atom_builder_helper_spec.rb')
-rw-r--r-- | spec/helpers/atom_builder_helper_spec.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/spec/helpers/atom_builder_helper_spec.rb b/spec/helpers/atom_builder_helper_spec.rb index 7366b5b79..7e11a8a77 100644 --- a/spec/helpers/atom_builder_helper_spec.rb +++ b/spec/helpers/atom_builder_helper_spec.rb @@ -20,7 +20,7 @@ RSpec.describe AtomBuilderHelper, type: :helper do describe '#unique_id' do it 'creates an id' do time = Time.now - expect(used_in_builder { |xml| helper.unique_id(xml, time, 1, 'Status') }).to match "<id>#{helper.unique_tag(time, 1, 'Status')}</id>" + expect(used_in_builder { |xml| helper.unique_id(xml, time, 1, 'Status') }).to match "<id>#{TagManager.instance.unique_tag(time, 1, 'Status')}</id>" end end @@ -146,18 +146,10 @@ RSpec.describe AtomBuilderHelper, type: :helper do let(:account) { Fabricate(:account, username: 'alice') } it 'creates a link' do - expect(used_in_builder { |xml| helper.link_mention(xml, account) }).to match '<link rel="mentioned" href="http://test.host/users/alice"/>' + expect(used_in_builder { |xml| helper.link_mention(xml, account) }).to match '<link rel="mentioned" href="https://cb6e6126.ngrok.io/users/alice"/>' end end - describe '#disambiguate_uri' do - pending - end - - describe '#disambiguate_url' do - pending - end - describe '#include_author' do pending end |