Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoads committed Jan 11, 2023
1 parent 792dd56 commit 0c9558f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/concerns/countable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
subject { ProvidersController.new }
before(:all) do
current_year = Date.today.year.to_s
@CUMULTATIVE_BY_YEAR = ("2015"..current_year).to_a.map do |year|
@CUMULATIVE_BY_YEAR = ("2015"..current_year).to_a.map do |year|
{ "count" => 3, "id" => year, "title" => year }
end
@CUMULTATIVE_BY_YEAR_WITH_DELETES = ("2015".."2017").to_a.map do |year|
@CUMULATIVE_BY_YEAR_WITH_DELETES = ("2015".."2017").to_a.map do |year|
{ "count" => 2, "id" => year, "title" => year }
end | ("2018"..current_year).to_a.map do |year|
{ "count" => 1, "id" => year, "title" => year }
Expand All @@ -26,7 +26,7 @@
Provider.import
sleep 2
expect(subject.provider_count).to match_array(
@CUMULTATIVE_BY_YEAR
@CUMULATIVE_BY_YEAR
)
end

Expand All @@ -36,7 +36,7 @@
Provider.import
sleep 2
expect(subject.provider_count).to match_array(
@CUMULTATIVE_BY_YEAR_WITH_DELETES
@CUMULATIVE_BY_YEAR_WITH_DELETES
)
end
end
Expand All @@ -51,7 +51,7 @@
Client.import
sleep 2
expect(subject.client_count).to match_array(
@CUMULTATIVE_BY_YEAR
@CUMULATIVE_BY_YEAR
)
end

Expand All @@ -61,7 +61,7 @@
Client.import
sleep 2
expect(subject.client_count).to match_array(
@CUMULTATIVE_BY_YEAR_WITH_DELETES
@CUMULATIVE_BY_YEAR_WITH_DELETES
)
end
end
Expand Down

0 comments on commit 0c9558f

Please sign in to comment.