This commit is contained in:
Julian Herrero
2019-01-10 13:48:42 +01:00
parent 2331cd048e
commit ab1e9a9310
3 changed files with 5 additions and 5 deletions

View File

@@ -355,7 +355,7 @@ en:
proposal_notification: proposal_notification:
attributes: attributes:
minimum_interval: minimum_interval:
invalid: "You have to wait a minium of %{interval} days between notifications" invalid: "You have to wait a minimum of %{interval} days between notifications"
signature: signature:
attributes: attributes:
document_number: document_number:

View File

@@ -440,7 +440,7 @@ feature 'Proposal Notifications' do
fill_in "Message", with: "Please share it again with others so we can make it happen!" fill_in "Message", with: "Please share it again with others so we can make it happen!"
click_button "Send message" click_button "Send message"
expect(page).to have_content "You have to wait a minium of 3 days between notifications" expect(page).to have_content "You have to wait a minimum of 3 days between notifications"
expect(page).not_to have_content "Your message has been sent correctly." expect(page).not_to have_content "Your message has been sent correctly."
end end
@@ -465,7 +465,7 @@ feature 'Proposal Notifications' do
click_button "Send message" click_button "Send message"
expect(page).to have_content "Your message has been sent correctly." expect(page).to have_content "Your message has been sent correctly."
expect(page).not_to have_content "You have to wait a minium of 3 days between notifications" expect(page).not_to have_content "You have to wait a minimum of 3 days between notifications"
travel_back travel_back
end end

View File

@@ -50,7 +50,7 @@ describe ProposalNotification do
Setting[:proposal_notification_minimum_interval_in_days] = 3 Setting[:proposal_notification_minimum_interval_in_days] = 3
end end
it "is not valid if below minium interval" do it "is not valid if below minimum interval" do
proposal = create(:proposal) proposal = create(:proposal)
notification1 = create(:proposal_notification, proposal: proposal) notification1 = create(:proposal_notification, proposal: proposal)
@@ -60,7 +60,7 @@ describe ProposalNotification do
expect(notification2).not_to be_valid expect(notification2).not_to be_valid
end end
it "is valid if notifications above minium interval" do it "is valid if notifications above minimum interval" do
proposal = create(:proposal) proposal = create(:proposal)
notification1 = create(:proposal_notification, proposal: proposal, created_at: 4.days.ago) notification1 = create(:proposal_notification, proposal: proposal, created_at: 4.days.ago)