|
17 | 17 | let(:yaml_provider) { instance_double(EventService::Providers::StaticYaml) } |
18 | 18 |
|
19 | 19 | before do |
20 | | - d1 = create(:dojo, name: 'Dojo1', email: 'info@dojo1.com', description: 'CoderDojo1', tags: %w(CoderDojo1), url: 'https://dojo1.com', prefecture_id: 13) |
21 | | - d2 = create(:dojo, name: 'Dojo2', email: 'info@dojo2.com', description: 'CoderDojo2', tags: %w(CoderDojo2), url: 'https://dojo2.com', prefecture_id: 13) |
| 20 | + d1 = create(:dojo, name: 'Dojo1', email: 'info@dojo1.example.com', description: 'CoderDojo1', tags: %w(CoderDojo1), url: 'https://example.com/dojo1', prefecture_id: 13) |
| 21 | + d2 = create(:dojo, name: 'Dojo2', email: 'info@dojo2.example.com', description: 'CoderDojo2', tags: %w(CoderDojo2), url: 'https://example.org/dojo2', prefecture_id: 13) |
22 | 22 | create(:dojo_event_service, dojo_id: d1.id, name: :connpass, group_id: 9876) |
23 | 23 | create(:dojo_event_service, dojo_id: d2.id, name: :doorkeeper, group_id: 5555) |
24 | 24 |
|
25 | | - create(:dojo, id: 194, name: 'Dojo194', email: 'info@dojo194.com', description: 'CoderDojo194', tags: %w(CoderDojo194), url: 'https://dojo194.com', prefecture_id: 13) |
| 25 | + create(:dojo, id: 194, name: 'Dojo194', email: 'info@dojo194.example.com', description: 'CoderDojo194', tags: %w(CoderDojo194), url: 'https://example.com/dojo194', prefecture_id: 13) |
26 | 26 | allow(EventService::Providers::StaticYaml).to receive(:new).and_return(yaml_provider) |
27 | 27 | allow(yaml_provider).to receive(:fetch_events).and_return([ |
28 | 28 | { 'dojo_id' => 194, 'event_url' => 'https://example.com/event/12345', 'evented_at' => '2023-12-10 14:00', 'participants' => 1 } |
|
153 | 153 |
|
154 | 154 | context 'find_dojos_by(services)' do |
155 | 155 | before :each do |
156 | | - @d1 = create(:dojo, name: 'Dojo1', email: 'info@dojo1.com', description: 'CoderDojo1', tags: %w(CoderDojo1), url: 'https://dojo1.com', prefecture_id: 13) |
157 | | - @d2 = create(:dojo, name: 'Dojo2', email: 'info@dojo2.com', description: 'CoderDojo2', tags: %w(CoderDojo2), url: 'https://dojo2.com', prefecture_id: 13) |
158 | | - @d3 = create(:dojo, name: 'Dojo3', email: 'info@dojo3.com', description: 'CoderDojo3', tags: %w(CoderDojo3), url: 'https://dojo3.com', prefecture_id: 13) |
159 | | - @d4 = create(:dojo, name: 'Dojo4', email: 'info@dojo4.com', description: 'CoderDojo4', tags: %w(CoderDojo4), url: 'https://dojo4.com', prefecture_id: 13) |
| 156 | + @d1 = create(:dojo, name: 'Dojo1', email: 'info@dojo1.example.com', description: 'CoderDojo1', tags: %w(CoderDojo1), url: 'https://example.com/dojo1', prefecture_id: 13) |
| 157 | + @d2 = create(:dojo, name: 'Dojo2', email: 'info@dojo2.example.com', description: 'CoderDojo2', tags: %w(CoderDojo2), url: 'https://example.org/dojo2', prefecture_id: 13) |
| 158 | + @d3 = create(:dojo, name: 'Dojo3', email: 'info@dojo3.example.com', description: 'CoderDojo3', tags: %w(CoderDojo3), url: 'https://example.net/dojo3', prefecture_id: 13) |
| 159 | + @d4 = create(:dojo, name: 'Dojo4', email: 'info@dojo4.example.com', description: 'CoderDojo4', tags: %w(CoderDojo4), url: 'https://example.com/dojo4', prefecture_id: 13) |
160 | 160 | create(:dojo_event_service, dojo_id: @d1.id, name: :connpass, group_id: 9876) |
161 | 161 | create(:dojo_event_service, dojo_id: @d2.id, name: :doorkeeper, group_id: 5555) |
162 | 162 | create(:dojo_event_service, dojo_id: @d2.id, name: :connpass, group_id: 9877) |
|
0 commit comments