Skip to content

Commit

Permalink
branch clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-fuentes committed Nov 23, 2017
1 parent 26f08eb commit c15ba83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/export.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ require 'public_organization_exporter'
require 'fileutils'

namespace :export do
desc "Exports profiles to public/export/public_organizations.csv,
desc "Exports organizations to public/export/public_organizations.csv,
public/export/public_organizations.xls and public/export/public_organizations.json"
task profiles: :environment do
task organizations: :environment do
folder = Rails.root.join('public', 'export')
FileUtils.rm_rf folder
FileUtils.mkdir_p folder
Expand Down
2 changes: 1 addition & 1 deletion spec/public_organization_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
describe '#public_organization_to_row' do
it "generates a row of info based on a public organization" do
o = create(:organization)

row = exporter.organization_to_row(o)

expect(row).to include(o.reference)
Expand All @@ -29,7 +30,6 @@
expect(row).to include(o.province)
expect(row).to include(o.phones)
expect(row).to include(o.email)
# expect(row).to include(o.association)
expect(row).to include(o.web)
expect(row).to include(o.registered_lobbies)
expect(row).to include(o.fiscal_year)
Expand Down

0 comments on commit c15ba83

Please sign in to comment.