Commit 184f8baa authored by Valery Sizov's avatar Valery Sizov

satisfy rubocop

parent 21287f1b
......@@ -12,7 +12,7 @@ module Elastic
index: {
analysis: {
analyzer: {
default:{
default: {
tokenizer: "standard",
filter: ["standard", "lowercase", "my_stemmer"]
}
......
......@@ -52,7 +52,7 @@ module SharedPaths
end
step 'I visit group "Owned" LDAP settings page' do
visit group_ldap_group_links_path(Group.find_by(name:"Owned"))
visit group_ldap_group_links_path(Group.find_by(name: "Owned"))
end
step 'I visit group "Owned" projects page' do
......
......@@ -130,7 +130,7 @@ describe Grack::Auth, lib: true do
context "when authentication succeeds" do
before do
allow_any_instance_of(Grack::Auth::Request).to receive(:spnego_credentials!).and_return("mylogin@FOO.COM")
user.identities.build(provider: "kerberos", extern_uid:"mylogin@FOO.COM").save
user.identities.build(provider: "kerberos", extern_uid: "mylogin@FOO.COM").save
end
context "when the user has access to the project" do
......
......@@ -1148,7 +1148,7 @@ describe Notify do
let(:example_site_path) { root_path }
let(:user) { create(:user) }
subject { @email = Notify.send_admin_notification(user.id, 'Admin announcement','Text') }
subject { @email = Notify.send_admin_notification(user.id, 'Admin announcement', 'Text') }
it 'is sent as the author' do
sender = subject.header[:from].addrs[0]
......
......@@ -27,7 +27,7 @@ describe HistoricalData do
describe ".track!" do
before do
allow(User).to receive(:active).and_return([1,2,3,4,5])
allow(User).to receive(:active).and_return([1, 2, 3, 4, 5])
end
it "creates a new historical data record" do
......
......@@ -115,7 +115,7 @@ describe Projects::UpdateRemoteMirrorService do
repository.rm_tag('v1.0.0')
expect(repository).to receive(:delete_remote_branches).with(
project.path_with_namespace, remote_mirror.ref_name,['v1.0.0']
project.path_with_namespace, remote_mirror.ref_name, ['v1.0.0']
)
subject.execute(remote_mirror)
......
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