Pact-node's ruby bindings don't work if the project name has spaces
See original GitHub issueSoftware versions
- OS:
macOS 10.13.3
,Centos 7 (probably)
- Consumer Pact library:
5.9.1
- Node Version:
8
Expected behaviour
It shouldn’t matter whether the directory name has or hasn’t spaces on its name.
Actual behaviour
When creating the mock server, it somehow split the project path where spaces exist: /var/lib/jenkins/workspace/My Cool App/
, and attempts to run Cool
as a command. It then, of course, fails saying
/node_modules/@pact-foundation/pact-node/standalone/darwin-1.43.1/lib/ruby/bin/ruby: line 14: Cool: command not found
Steps to reproduce
- Change the name of your app to something with spaces (if possible with 3 words), like:
my-cool-app
toMy Cool App
. - Run the PactJS tests.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Pact-node's ruby bindings don't work if the project name has ...
It shouldn't matter whether the directory name has or hasn't spaces on its name. Actual behaviour. When creating the mock server, it somehow ......
Read more >VS/Nuget inconsistently add/don't add a space before closing ...
I have hundreds of projects to upgrade, and I cannot have web.config changesets where every line is modified for spacing changes. Literally about...
Read more >pact-js
Hi, I?m trying to integrate Pact JS into a React project. It worked well until I tried to build the application with Jenkins....
Read more >Bindings and Lexical Scope in Ruby - AppSignal Blog
In this episode, we'll look at how that environment works for closures, classes and class instances by examining how Ruby handles lexical scope ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I swear we’d fixed all the space issues! They’re like whack-a-mole. I’ll have a look. I think I’m going to add contraindications for using Pact in the FAQ - 1. you’re on windows or 2. your project name has spaces 😛
Closing as latest version removes Ruby core.