Linter fix ups

This commit is contained in:
Brenda Wallace committed 2019-04-19 09:15:41 +12:00
1 parent a58ce0f6a2
commit a2e2362594
4 files changed
+3 -3

No files matched your search

-1
View File
@@ -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?
+1
View File
@@ -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) }
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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' }