Shortened the text on the badges

This commit is contained in:
Brenda Wallace
2019-02-09 14:18:15 +13:00
parent ec4b443d8c
commit 95db0f7297
2 changed files with 8 additions and 8 deletions

View File

@@ -191,8 +191,8 @@ en:
number_gardens_linktext: "%{count} gardens"
number_plantings_linktext: "%{count} times"
label:
days_until_harvest: "%{number} days until harvest"
days_until_finished: "%{number} days until finished"
days_until_harvest: "%{number} days"
days_until_finished: "%{number} days"
harvesting_now: harvesting now
layouts:
header:

View File

@@ -104,8 +104,8 @@ feature "Gardens#index", :js do
it { expect(page).to have_link href: planting_path(planting) }
it { expect(page).to have_link href: garden_path(planting.garden) }
it { expect(page).to have_text '50 days until harvest' }
it { expect(page).to have_text '90 days until finished' }
it { expect(page).to have_text '50 days' }
it { expect(page).to have_text '90 days' }
it { expect(page).not_to have_text 'harvesting now' }
end
@@ -121,8 +121,8 @@ feature "Gardens#index", :js do
it { expect(crop.median_lifespan).to eq 90 }
it { expect(page).to have_text 'harvesting now' }
it { expect(page).to have_text '39 days until finished' }
it { expect(page).not_to have_text 'days until harvest' }
it { expect(page).to have_text '39 days' }
it { expect(page).not_to have_text 'Predicted days until harvest' }
end
describe 'super late' do
@@ -134,8 +134,8 @@ feature "Gardens#index", :js do
it { expect(page).to have_text 'super late' }
it { expect(page).not_to have_text 'harvesting now' }
it { expect(page).not_to have_text 'days until harvest' }
it { expect(page).not_to have_text 'days until finished' }
it { expect(page).not_to have_text 'Predicted days until harvest' }
it { expect(page).not_to have_text 'Predicted days until planting is finished' }
end
end
end