Skip to content

Commit 5b73745

Browse files
committed
refa: just a little bit of rubocop happiness
1 parent 5c3a93b commit 5b73745

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 |example|
99
whitelabel_backup = Whitelabel.labels
@@ -17,7 +17,6 @@
1717
Whitelabel.labels = whitelabel_backup
1818
end
1919

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

0 commit comments

Comments
 (0)