Fix hound warnings
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
require 'rails_helper'
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe BudgetInvestmentsHelper, type: :helper do
|
||||
|
||||
@@ -22,15 +22,15 @@ RSpec.describe BudgetInvestmentsHelper, type: :helper do
|
||||
let(:params) { { sort_by: sort_by } }
|
||||
|
||||
it "returns arrow down if current direction is ASC" do
|
||||
expect(set_sorting_icon("asc", sort_by)).to eq "icon-arrow-down"
|
||||
expect(set_sorting_icon("asc", sort_by)).to eq "asc"
|
||||
end
|
||||
|
||||
it "returns arrow top if current direction is DESC" do
|
||||
expect(set_sorting_icon("desc", sort_by)).to eq "icon-arrow-top"
|
||||
expect(set_sorting_icon("desc", sort_by)).to eq "desc"
|
||||
end
|
||||
|
||||
it "returns arrow down if sort_by present, but no direction" do
|
||||
expect(set_sorting_icon(nil, sort_by)).to eq "icon-arrow-down"
|
||||
expect(set_sorting_icon(nil, sort_by)).to eq "asc"
|
||||
end
|
||||
|
||||
it "returns no icon if sort_by and direction is missing" do
|
||||
|
||||
Reference in New Issue
Block a user