Skip to content

Commit

Permalink
fixing cleanup issues with generator spec
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhunter committed Aug 20, 2015
1 parent 8ba8014 commit 853f6b5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 48 deletions.
23 changes: 0 additions & 23 deletions spec/dummy/app/views/dossier/reports/account_tracker.html.haml

This file was deleted.

23 changes: 0 additions & 23 deletions spec/dummy/app/views/dossier/reports/show.html.haml

This file was deleted.

3 changes: 1 addition & 2 deletions spec/generators/dossier/views/views_spec.rb
Expand Up @@ -3,13 +3,12 @@
require 'generators/dossier/views/views_generator'

describe Dossier::ViewsGenerator, type: :generator do
before(:each) { cleanup }
after(:each) { cleanup }

let(:path) { Rails.root.join(*%w[app views dossier reports]) }
let(:file) { raise 'implement in nested context/describe' }
let(:file_path) { path.join(file) }
let(:cleanup) { FileUtils.rm file_path }
let(:cleanup) { FileUtils.rm_f file_path }

context "with no arguments or options" do
let(:file) { 'show.html.haml' }
Expand Down

0 comments on commit 853f6b5

Please sign in to comment.