我正在尝试在代理后面的VM上运行describe('loginSuccessEpic', () => {
it('send correct actions when success', done => {
const action$ = ActionsObservable.of({
type: 'auth/LOG_IN',
payload: {
email: 'ricardo@rbargux.com',
password: 'xxxxx',
},
});
const state$ = {
value: fromJS({
app: { baseUrl: 'http://0.0.0.0:3000' },
}),
};
const expectedOutputActions = [
{ type: 'ui/HIDE_LOADING' },
{ type: 'auth/SET_AUTH_RESPONSE', payload: 'Unknow error' },
{
type: 'auth/AUTH_ERROR',
payload: {
body: undefined,
url: undefined,
headers: undefined,
method: undefined,
},
},
];
logInEpic(action$, state$)
.pipe(toArray())
.subscribe(actualOutputActions => {
expect(actualOutputActions).toEqual(expectedOutputActions);
done();
});
});
});
。
我收到以下错误:
bundle install
如果我尝试ping通,则Bundler::HTTPError Could not fetch specs from rubygems.org
但是,我可以浏览该网站,这使我感到奇怪。
关于如何解决此问题的任何建议?
答案 0 :(得分:1)