Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions spec/guard/coffeescript/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@
[pattern], output: 'javascripts', shallow: false)
end

context 'with no folders in the input path' do
it 'fails silently because there are no patterns and no output paths' do
expect(File).not_to receive(:open)
runner.run(['application.coffee'], [], output: 'javascripts', shallow: false)
end
end

context 'with the :source_map option' do
it 'generates the source map to the output and creates nested directories' do
expect(FileUtils).to receive(:mkdir_p).with("#{ @project_path }/javascripts/x/y")
Expand Down