diff --git a/app/controllers/budgets/investments_controller.rb b/app/controllers/budgets/investments_controller.rb index 12976de7d..235163f2e 100644 --- a/app/controllers/budgets/investments_controller.rb +++ b/app/controllers/budgets/investments_controller.rb @@ -46,13 +46,9 @@ module Budgets @investment.author = current_user if @investment.save - activity_link = view_context.link_to(t('layouts.header.my_activity_link'), - user_path(current_user, filter: :budget_investments)) redirect_to budget_investment_path(@budget, @investment), - flash: { html_safe: true }, - notice: t('flash.actions.create.budget_investment', activity: activity_link) + notice: t('flash.actions.create.budget_investment') else - render :new end end diff --git a/config/locales/responders.en.yml b/config/locales/responders.en.yml index 94da226e3..100ae5f41 100755 --- a/config/locales/responders.en.yml +++ b/config/locales/responders.en.yml @@ -9,7 +9,7 @@ en: proposal: "Proposal created successfully." proposal_notification: "Your message has been sent correctly." spending_proposal: "Spending proposal created successfully. You can access it from %{activity}" - budget_investment: "Budget Investment created successfully. You can access it from %{activity}" + budget_investment: "Budget Investment created successfully." signature_sheet: "Signature sheet created successfully" save_changes: notice: Changes saved diff --git a/config/locales/responders.es.yml b/config/locales/responders.es.yml index d9c0564ee..43eb00669 100644 --- a/config/locales/responders.es.yml +++ b/config/locales/responders.es.yml @@ -9,7 +9,7 @@ es: proposal: "Propuesta creada correctamente." proposal_notification: "Tu message ha sido enviado correctamente." spending_proposal: "Propuesta de inversión creada correctamente. Puedes acceder a ella desde %{activity}" - budget_investment: "Inversión creada correctamente. Puedes verla desde %{activity}" + budget_investment: "Propuesta de inversión creada correctamente." signature_sheet: "Hoja de firmas creada correctamente" save_changes: notice: Cambios guardados diff --git a/spec/features/budgets/investments_spec.rb b/spec/features/budgets/investments_spec.rb index b5f3354d9..98540aa68 100644 --- a/spec/features/budgets/investments_spec.rb +++ b/spec/features/budgets/investments_spec.rb @@ -190,13 +190,8 @@ feature 'Budget Investments' do click_button 'Create Investment' expect(page).to have_content 'Investment created successfully' - expect(page).to have_content 'You can access it from My activity' - within "#notice" do - click_link 'My activity' - end - - expect(current_url).to eq(user_url(author, filter: :budget_investments)) + visit user_url(author, filter: :budget_investments) expect(page).to have_content "1 Investment" expect(page).to have_content "Build a skyscraper" end