spec/rake/funnel/support/internal/finder_spec.rb in rake-funnel-0.21.0 vs spec/rake/funnel/support/internal/finder_spec.rb in rake-funnel-0.21.1
- old
+ new
@@ -1,11 +1,9 @@
# rubocop:disable RSpec/FilePath
require 'tmpdir'
-include Rake::Funnel
-
describe Rake::Funnel::Support::Finder do
let(:pattern) { %W(#{temp_dir}/**/*.sln #{temp_dir}/**/*.??proj) }
let(:generate) { [] }
let(:temp_dir) { Dir.mktmpdir }
@@ -113,21 +111,21 @@
describe '#single' do
context 'no matching files' do
it 'should fail' do
Dir.chdir(temp_dir) do
- expect { subject.single }.to raise_error(AmbiguousFileError, /error message/)
+ expect { subject.single }.to raise_error(Rake::Funnel::AmbiguousFileError, /error message/)
end
end
end
context 'more than one matching file' do
let(:generate) { %w(foo/project1.sln foo/project2.sln) }
it 'should fail' do
Dir.chdir(temp_dir) do
- expect { subject.single }.to raise_error(AmbiguousFileError, /error message/)
+ expect { subject.single }.to raise_error(Rake::Funnel::AmbiguousFileError, /error message/)
end
end
end
context 'one matching file' do
@@ -172,10 +170,10 @@
end
describe '#all' do
context 'no matching files' do
it 'should fail' do
- expect { subject.all }.to raise_error(AmbiguousFileError, /error message/)
+ expect { subject.all }.to raise_error(Rake::Funnel::AmbiguousFileError, /error message/)
end
end
context 'more than one matching file' do
let(:generate) { %w(foo/project1.sln foo/project2.sln) }