Fix hound warnings

This commit is contained in:
decabeza
2019-03-26 18:21:19 +01:00
parent eda6ea7f12
commit f47ec9d7dc
12 changed files with 203 additions and 145 deletions

View File

@@ -1,16 +1,16 @@
require 'rails_helper'
require "rails_helper"
describe Admin::ProposalDashboardActionsHelper do
describe 'active_human_readable' do
context 'when active is true' do
it 'returns label for active state' do
expect(active_human_readable(true)).to eq(t('admin.dashboard.actions.index.active'))
describe "active_human_readable" do
context "when active is true" do
it "returns label for active state" do
expect(active_human_readable(true)).to eq(t("admin.dashboard.actions.index.active"))
end
end
context 'when active is false' do
it 'returns label for inactive state' do
expect(active_human_readable(false)).to eq(t('admin.dashboard.actions.index.inactive'))
context "when active is false" do
it "returns label for inactive state" do
expect(active_human_readable(false)).to eq(t("admin.dashboard.actions.index.inactive"))
end
end
end