Skip to content

Commit a83b5f7

Browse files
committed
refa: just a little bit of rubocop happiness
1 parent 9e83c6f commit a83b5f7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

spec/models/usergroup_spec.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@
9090
rughh.custom_recurring = true
9191
end
9292

93-
9493
specify 'de' do
95-
allow(I18n).to receive(:tw).with('custom_recurrence').and_return("custom_recurrence")
94+
allow(I18n).to receive(:tw).with('custom_recurrence').and_return('custom_recurrence')
9695

9796
expect(rughh.localized_custom_recurrence).to eql 'custom_recurrence'
9897
end

spec/requests/whitelabel_spec.rb

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
require 'spec_helper'
22

33
describe 'Whitelabel' do
4-
let(:hamburg) { Usergroup.from_name("hamburg") }
5-
let(:berlin) { Usergroup.from_name("berlin") }
6-
let(:tokio) { Usergroup.from_name("tokio") }
4+
let(:hamburg) { Usergroup.from_name('hamburg') }
5+
let(:berlin) { Usergroup.from_name('berlin') }
6+
let(:tokio) { Usergroup.from_name('tokio') }
77

88
around do
99
whitelabel_backup = Whitelabel.labels
@@ -16,7 +16,6 @@
1616
Whitelabel.labels = whitelabel_backup
1717
end
1818

19-
2019
context 'GET label page with non existing subdomain' do
2120
it 'does not do an endless redirect but halts' do
2221
host! 'www.onruby.test'

0 commit comments

Comments
 (0)