Merge pull request #275 from sgmap/remove_dead_code

Clean: remove dead code
This commit is contained in:
gregoirenovel 2017-05-11 14:40:58 +02:00 committed by GitHub
commit 72fac9a731
2 changed files with 0 additions and 10 deletions

View file

@ -29,8 +29,4 @@ class EntrepriseDecorator < Draper::Decorator
def pretty_capital_social
h.number_to_currency(capital_social, delimiter: ' ', unit: '€', format: '%n %u')
end
def pretty_date_creation
Time.at(date_creation).strftime('%d-%m-%Y')
end
end

View file

@ -50,10 +50,4 @@ describe EntrepriseDecorator do
expect(subject.pretty_capital_social).to eq('123 000,00 €')
end
end
describe '#pretty_date_creation' do
it 'pretty print date creation' do
expect(subject.pretty_date_creation).to eq('28-01-2016')
end
end
end