Skip to content

Commit

Permalink
Updated rubocop settings
Browse files Browse the repository at this point in the history
  • Loading branch information
albus522 committed Mar 31, 2017
1 parent c2d6049 commit 7012fa3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ Encoding:
EndAlignment:
EnforcedStyleAlignWith: variable

Style/FrozenStringLiteralComment:
Enabled: false

# Enforce Ruby 1.8-compatible hash syntax
HashSyntax:
EnforcedStyle: hash_rockets
Expand All @@ -84,6 +87,9 @@ MethodLength:
MultilineOperationIndentation:
EnforcedStyle: indented

Style/NumericPredicate:
Enabled: false

# Avoid long parameter lists
ParameterLists:
Max: 4
Expand All @@ -110,13 +116,19 @@ RegexpLiteral:
RescueModifier:
Enabled: false

Style/SafeNavigation:
Enabled: false

SignalException:
EnforcedStyle: only_raise

# No spaces inside hash literals
SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Style/SymbolArray:
Enabled: false

SymbolProc:
Enabled: false

Expand Down
6 changes: 3 additions & 3 deletions spec/message_sending_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def tell!(_arg); end
expect(job.payload_object.class).to eq(Delayed::PerformableMethod)
expect(job.payload_object.method_name).to eq(:tell_without_delay!)
expect(job.payload_object.args).to eq([1])
end.to change { Delayed::Job.count }
end.to(change { Delayed::Job.count })
end

describe 'with options' do
Expand Down Expand Up @@ -106,7 +106,7 @@ def tell
expect do
fairy_tail.delay.tell
end.to change(fairy_tail, :happy_ending).from(nil).to(true)
end.not_to change { Delayed::Job.count }
end.not_to(change { Delayed::Job.count })
end

it 'does delay the job when delay_jobs is true' do
Expand Down Expand Up @@ -136,7 +136,7 @@ def tell
expect do
fairy_tail.delay.tell
end.to change(fairy_tail, :happy_ending).from(nil).to(true)
end.not_to change { Delayed::Job.count }
end.not_to(change { Delayed::Job.count })
end
end
end

0 comments on commit 7012fa3

Please sign in to comment.