Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/whitelabel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
coc: http://rubyberlin.github.io/code-of-conduct
- !ruby/object:Usergroup
label_id: cologne
canonical_url: https://www.colognerb.de
canonical_url: https://cologne.onruby.de
status: enabled
default_locale: de
country: Deutschland
Expand Down Expand Up @@ -471,7 +471,7 @@
twitter: bcnrails
google_group: barcelonaonrails
label_id: barcelona
canonical_url: https://ruby.barcelona
canonical_url: https://barcelona.onruby.eu
status: enabled
default_locale: es
tld: eu
Expand Down
5 changes: 3 additions & 2 deletions spec/requests/whitelabel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
end

context 'GET page with custom domain' do
it 'shows the label' do
host! 'www.colognerb.de'
it 'shows the label and canonical' do
host! 'cologne.onruby.de'

get root_url
expect(response).to be_a_successful
expect(Whitelabel[:label_id]).to eql('cologne')
expect(Whitelabel[:canonical_url]).to eql('https://cologne.onruby.de')
end
end
end