Commit a16d508e authored by Alex Kalderimis's avatar Alex Kalderimis

Rename assembla service

Renames `assembla_service` to `assembla_integration`
parent 8b9084b4
......@@ -229,7 +229,7 @@ class Integration < ApplicationRecord
end
# used as part of the renaming effort
RENAMED_TO_INTEGRATION = %w[asana]
RENAMED_TO_INTEGRATION = %w[asana assembla]
def self.available_integration_names(**args)
available_services_names(**args)
......
......@@ -156,7 +156,7 @@ class Project < ApplicationRecord
# Project integrations
has_one :asana_integration, class_name: 'Integrations::Asana'
has_one :assembla_service, class_name: 'Integrations::Assembla'
has_one :assembla_integration, class_name: 'Integrations::Assembla'
has_one :bamboo_service, class_name: 'Integrations::Bamboo'
has_one :bugzilla_service, class_name: 'Integrations::Bugzilla'
has_one :buildkite_service, class_name: 'Integrations::Buildkite'
......
......@@ -376,7 +376,7 @@ project:
- pivotaltracker_service
- prometheus_service
- flowdock_service
- assembla_service
- assembla_integration
- asana_integration
- slack_service
- microsoft_teams_service
......
......@@ -15,8 +15,8 @@ RSpec.describe Integrations::Assembla do
let(:project) { create(:project, :repository) }
before do
@assembla_service = described_class.new
allow(@assembla_service).to receive_messages(
@assembla_integration = described_class.new
allow(@assembla_integration).to receive_messages(
project_id: project.id,
project: project,
service_hook: true,
......@@ -29,7 +29,7 @@ RSpec.describe Integrations::Assembla do
end
it "calls Assembla API" do
@assembla_service.execute(@sample_data)
@assembla_integration.execute(@sample_data)
expect(WebMock).to have_requested(:post, stubbed_hostname(@api_url)).with(
body: /#{@sample_data[:before]}.*#{@sample_data[:after]}.*#{project.path}/
).once
......
......@@ -54,7 +54,7 @@ RSpec.describe Project, factory_default: :keep do
it { is_expected.to have_one(:irker_service) }
it { is_expected.to have_one(:pivotaltracker_service) }
it { is_expected.to have_one(:flowdock_service) }
it { is_expected.to have_one(:assembla_service) }
it { is_expected.to have_one(:assembla_integration) }
it { is_expected.to have_one(:slack_slash_commands_service) }
it { is_expected.to have_one(:mattermost_slash_commands_service) }
it { is_expected.to have_one(:buildkite_service) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment