mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-08 07:43:49 -04:00
Linter fix ups
This commit is contained in:
@@ -51,7 +51,6 @@ module PlantingsHelper
|
||||
(planting.last_harvest_predicted_at - Time.zone.today).to_i
|
||||
end
|
||||
|
||||
|
||||
def planting_classes(planting)
|
||||
classes = []
|
||||
classes << 'planting-growing' if planting.growing?
|
||||
|
||||
@@ -6,6 +6,7 @@ module SeedsHelper
|
||||
pluralize(seed.quantity, 'seed')
|
||||
end
|
||||
end
|
||||
|
||||
def display_seed_description(seed)
|
||||
if seed.description.present?
|
||||
truncate(seed.description, length: 130, separator: ' ', omission: '... ') { link_to "Read more", seed_path(seed) }
|
||||
|
||||
@@ -6,7 +6,7 @@ shared_examples "append date" do
|
||||
|
||||
describe "Selecting a date with datepicker" do
|
||||
before do
|
||||
click_link link_text
|
||||
click_link link_text
|
||||
within "div.datepicker" do
|
||||
expect(page).to have_content this_month.to_s
|
||||
find(".datepicker-days td.day", text: "21").click
|
||||
|
||||
@@ -37,7 +37,7 @@ describe "plantings/show" do
|
||||
|
||||
describe "shows planted_from if blank" do
|
||||
before do
|
||||
planting.update(planted_from: '')
|
||||
planting.update(planted_from: '')
|
||||
render
|
||||
end
|
||||
it { expect(rendered).not_to have_content 'Planted from' }
|
||||
|
||||
Reference in New Issue
Block a user