Rename last uses of Buildbox to Buildkite

This commit is contained in:
Robert Speicher 2015-04-11 14:02:13 -04:00
parent 93b1767799
commit 307962a046
4 changed files with 5 additions and 7 deletions

View file

@ -81,7 +81,7 @@ class Project < ActiveRecord::Base
has_one :asana_service, dependent: :destroy
has_one :gemnasium_service, dependent: :destroy
has_one :slack_service, dependent: :destroy
has_one :buildbox_service, dependent: :destroy
has_one :buildkite_service, dependent: :destroy
has_one :bamboo_service, dependent: :destroy
has_one :teamcity_service, dependent: :destroy
has_one :pushover_service, dependent: :destroy

View file

@ -20,9 +20,7 @@
require "addressable/uri"
# Buildbox renamed to Buildkite, but for backwards compatability with the STI
# of Services, the class name is kept as "Buildbox"
class BuildboxService < CiService
class BuildkiteService < CiService
ENDPOINT = "https://buildkite.com"
prop_accessor :project_url, :token

View file

@ -125,7 +125,7 @@ class Service < ActiveRecord::Base
asana
assembla
bamboo
buildbox
buildkite
campfire
custom_issue_tracker
emails_on_push

View file

@ -19,7 +19,7 @@
require 'spec_helper'
describe BuildboxService do
describe BuildkiteService do
describe 'Associations' do
it { is_expected.to belong_to :project }
it { is_expected.to have_one :service_hook }
@ -32,7 +32,7 @@ describe BuildboxService do
default_branch: 'default-brancho'
)
@service = BuildboxService.new
@service = BuildkiteService.new
@service.stub(
project: @project,
service_hook: true,