Skip to content

Commit

Permalink
fix test after earlier refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed May 3, 2024
1 parent 909eb45 commit 2039e57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/urbanopt/reporting/reporting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@
end

it 'can merge distributed generation systems together' do
existing_dgen = URBANopt::Reporting::DefaultReports::DistributedGeneration.new(annual_renewable_electricity_pct: 0, year_one_energy_cost_us_dollars: 100_000)
new_dgen = URBANopt::Reporting::DefaultReports::DistributedGeneration.new(annual_renewable_electricity_pct: 50, year_one_energy_cost_us_dollars: 50_000)
existing_dgen = URBANopt::Reporting::DefaultReports::DistributedGeneration.new(renewable_electricity_fraction: 0, year_one_energy_cost_us_dollars: 100_000)
new_dgen = URBANopt::Reporting::DefaultReports::DistributedGeneration.new(renewable_electricity_fraction: 50, year_one_energy_cost_us_dollars: 50_000)

distributed_generation = URBANopt::Reporting::DefaultReports::DistributedGeneration.merge_distributed_generation(existing_dgen, new_dgen)

expect(distributed_generation.annual_renewable_electricity_pct).to eq(50)
expect(distributed_generation.renewable_electricity_fraction).to eq(50)
end
end

Expand Down

0 comments on commit 2039e57

Please sign in to comment.