Fixed config spec
Stub exit code, fixed ruby error