mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-27 09:18:26 -04:00
MethodCallWithoutArgsParentheses fixup
This commit is contained in:
1 parent
e184503caa
commit
818466a142
3 files changed
+2
-9
No files matched your search
@@ -247,13 +247,6 @@ Style/Lambda:
|
||||
- 'spec/controllers/member_controller_spec.rb'
|
||||
- 'spec/models/photo_spec.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Style/MethodCallWithoutArgsParentheses:
|
||||
Exclude:
|
||||
- 'spec/helpers/application_helper_spec.rb'
|
||||
- 'spec/views/plantings/new.html.haml_spec.rb'
|
||||
|
||||
# Offense count: 8
|
||||
# Cop supports --auto-correct.
|
||||
Style/MultilineBlockLayout:
|
||||
|
||||
@@ -125,7 +125,7 @@ describe ApplicationHelper do
|
||||
expect(build_alert_classes(:info)).to include 'alert-info'
|
||||
end
|
||||
it 'works when blank' do
|
||||
expect(build_alert_classes()).to include 'alert-info'
|
||||
expect(build_alert_classes).to include 'alert-info'
|
||||
end
|
||||
it 'includes base classes' do
|
||||
expect(build_alert_classes(:info)).to include 'alert alert-dismissable'
|
||||
|
||||
@@ -31,7 +31,7 @@ describe "plantings/new" do
|
||||
context "logged in" do
|
||||
before(:each) do
|
||||
sign_in @member
|
||||
assign(:planting, Planting.new())
|
||||
assign(:planting, Planting.new)
|
||||
assign(:crop, @crop2)
|
||||
assign(:garden, @garden_z)
|
||||
render
|
||||
|
||||
Reference in new issue
Block a user