spec/pgit/current_project/validator_spec.rb in pgit-0.0.4 vs spec/pgit/current_project/validator_spec.rb in pgit-1.0.0
- old
+ new
@@ -1,11 +1,12 @@
require 'spec_helper'
describe 'PGit::CurrentProject::Validator' do
it 'should raise an error if there are no matching projects' do
matching_projects = []
+ message = "None of the project paths matches the working directory"
expect do
PGit::CurrentProject::Validator.new(matching_projects)
- end.to raise_error PGit::CurrentProject::NoPathsMatchWorkingDirError
+ end.to raise_error(PGit::Error::User, message)
end
end