Sha256: 7d3a72ca3dbf15418515307daf38a9980f7037cb816f4c1e087c75e1e8dc5c04
Contents?: true
Size: 377 Bytes
Versions: 24
Compression:
Stored size: 377 Bytes
Contents
require 'spec_helper' describe 'jQuery POST API example', type: :feature, js: true do before do proxy.stub('http://example.com/api', method: 'post').and_return( headers: { 'Access-Control-Allow-Origin' => '*' }, code: 201 ) end it 'posts to an API' do visit '/post_api.html' expect(page.find('#result')).to have_content 'Success!' end end
Version data entries
24 entries across 24 versions & 1 rubygems