Note one of the tests dealing with random results is a bit flaky; since it's a permutation selecting 7 objects out of 12, it will fail about once every 4 million times. We think this is acceptable. Co-Authored-By: Julian Nicolas Herrero <microweb10@gmail.com>
9 lines
238 B
Ruby
9 lines
238 B
Ruby
class Budgets::InvestmentComponent < ApplicationComponent
|
|
delegate :locale_and_user_status, :namespaced_budget_investment_path, to: :helpers
|
|
attr_reader :investment
|
|
|
|
def initialize(investment)
|
|
@investment = investment
|
|
end
|
|
end
|