Fix hound warnings

This commit is contained in:
decabeza
2019-02-19 13:59:46 +01:00
committed by Javi Martín
parent 9e9eb1359b
commit 26741d9560
2 changed files with 390 additions and 372 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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