Skip to content

Commit

Permalink
Merge pull request #551 from nanoc/improve-filename-factory-spec
Browse files Browse the repository at this point in the history
Create new temp filename factory for testing
  • Loading branch information
denisdefreyne committed May 8, 2015
2 parents cf46d63 + ca51fe9 commit 78b7e88
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/base/temp_filename_factory_spec.rb
Expand Up @@ -2,15 +2,11 @@

describe Nanoc::TempFilenameFactory do
subject do
Nanoc::TempFilenameFactory.instance
Nanoc::TempFilenameFactory.new
end

let(:prefix) { 'foo' }

before do
subject.cleanup(prefix)
end

describe '#create' do
it 'should create unique paths' do
path_a = subject.create(prefix)
Expand Down

0 comments on commit 78b7e88

Please sign in to comment.