From 14bd46946d25186044485aa101dd2da976b61181 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 30 Nov 2016 21:32:11 +0100 Subject: Per-status control for unlisted mode, also federation for unlisted mode Fix #233, fix #268 --- spec/helpers/atom_builder_helper_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/helpers') diff --git a/spec/helpers/atom_builder_helper_spec.rb b/spec/helpers/atom_builder_helper_spec.rb index 7e11a8a77..8a161cab3 100644 --- a/spec/helpers/atom_builder_helper_spec.rb +++ b/spec/helpers/atom_builder_helper_spec.rb @@ -13,7 +13,7 @@ RSpec.describe AtomBuilderHelper, type: :helper do describe '#feed' do it 'creates a feed' do - expect(used_in_builder { |xml| helper.feed(xml) }).to match '' + expect(used_in_builder { |xml| helper.feed(xml) }).to match '' end end @@ -46,7 +46,7 @@ RSpec.describe AtomBuilderHelper, type: :helper do describe '#verb' do it 'creates an entry' do - expect(used_with_namespaces { |xml| helper.verb(xml, 'verb') }).to match 'http://activitystrea.ms/schema/1.0/verb' + expect(used_with_namespaces { |xml| helper.verb(xml, :post) }).to match 'http://activitystrea.ms/schema/1.0/post' end end @@ -76,7 +76,7 @@ RSpec.describe AtomBuilderHelper, type: :helper do describe '#object_type' do it 'creates an object type' do - expect(used_with_namespaces { |xml| helper.object_type(xml, 'test') }).to match 'http://activitystrea.ms/schema/1.0/test' + expect(used_with_namespaces { |xml| helper.object_type(xml, :person) }).to match 'http://activitystrea.ms/schema/1.0/person' end end @@ -146,7 +146,7 @@ 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 '' + expect(used_in_builder { |xml| helper.link_mention(xml, account) }).to match '' end end -- cgit