All Projects → okitan → capybara-json

okitan / capybara-json

Licence: other
No description or website provided.

Programming Languages

ruby
36898 projects - #4 most used programming language
Roff
2310 projects

Projects that are alternatives of or similar to capybara-json

delayed job worker pool
Worker process pooling for Delayed Job
Stars: ✭ 32 (-47.54%)
Mutual labels:  gem
nanook
Ruby library for making and receiving payments and managing a nano currency node
Stars: ✭ 17 (-72.13%)
Mutual labels:  gem
user-info
Node.js `os.userInfo()` ponyfill
Stars: ✭ 33 (-45.9%)
Mutual labels:  deprecated
aws-chaos-scripts
DEPRECATED Collection of python scripts to run failure injection on AWS infrastructure
Stars: ✭ 91 (+49.18%)
Mutual labels:  deprecated
ionic-3D-card-carousel
DEPRECATED Sample project that shows an experimental 3D card carousel in Ionic.
Stars: ✭ 29 (-52.46%)
Mutual labels:  deprecated
rok4
ROK4 est une suite d'outils open source développée par l'IGN France permettant la diffusion de données raster et vecteur en WMS, WMTS ou TMS. DEPRECATED ! Projet maintenu ici : https://github.com/rok4/documentation
Stars: ✭ 18 (-70.49%)
Mutual labels:  deprecated
google docs-ruby
A library which allows you to edit your spreadsheets with pleasure
Stars: ✭ 18 (-70.49%)
Mutual labels:  gem
Azure-AppServices-Diagnostics
Azure App Service Diagnostics provides developers ability to write various diagnostics features which helps customers to diagnose and troubleshoot their applications hosted on app services.
Stars: ✭ 42 (-31.15%)
Mutual labels:  deprecated
perfectum
A set of tools for working with project performance
Stars: ✭ 43 (-29.51%)
Mutual labels:  deprecated
path-is-absolute
Node.js 0.12 path.isAbsolute() ponyfill
Stars: ✭ 39 (-36.07%)
Mutual labels:  deprecated
rspec-json matchers
A collection of RSpec matchers for testing JSON data.
Stars: ✭ 23 (-62.3%)
Mutual labels:  gem
opentab
开源的轻应用后端(Open Tiny App Backend),轻量,高效,易部署。
Stars: ✭ 27 (-55.74%)
Mutual labels:  deprecated
activerecord-shard for
Database Sharding Library for ActiveRecord
Stars: ✭ 16 (-73.77%)
Mutual labels:  gem
dcos-launch
Turn-key deployments of DC/OS on AWS (template and onprem), Azure, and GCE
Stars: ✭ 16 (-73.77%)
Mutual labels:  deprecated
passion
An object-oriented LÖVE game engine
Stars: ✭ 35 (-42.62%)
Mutual labels:  deprecated
react-native-aws-mobile-analytics
A react-native module for using Amazon's AWS Mobile Analytics with the aws-sdk
Stars: ✭ 16 (-73.77%)
Mutual labels:  deprecated
zengin-rb
💎 The ruby implementation of ZenginCode.
Stars: ✭ 83 (+36.07%)
Mutual labels:  gem
jsonapi-serializer-formats
💎 Gem to enrich jsonapi-serializer with multiple formats
Stars: ✭ 20 (-67.21%)
Mutual labels:  gem
dashboard-extension-simple-table
⛔ DEPRECATED. This project was moved to a new repository. Visit https://github.com/DevExpress/dashboard-extensions to find an updated version.
Stars: ✭ 37 (-39.34%)
Mutual labels:  deprecated
modular routes
Dedicated controllers for each of your Rails route actions.
Stars: ✭ 45 (-26.23%)
Mutual labels:  gem

capybara-json Build Status Dependency Status

testing ruby: 1.9.3, 2.0.0, 2.1.x, 2.2.x; Capybara: 0.4.x, 1.1.x, 2.0.x

About capybara-json

capybara-json provides the same interface to testing JSON API (both local and remote)

Capybara is an acceptance test framework, and it has no interest with client error(4xx response).

USAGE

require 'capybara/json'
include Capybara::Json

Capybara.current_driver = :rack_test_json
Capybara.app = MyRackApp
post '/', { "this is" => "json" } # POST '/'
json     #=> parsed json response
raw_json #=> raw response body

get  '/errors/400'
status_code #=> 400
get! '/errors' #=> raise Capybara::Json::Error

get  '/errors', {}, { 'header' => '' } # set request headers
response_headers #=> get response headers

Capybara.current_driver = :httpclient_json
Capybara.app_host = 'http://example.com'
post '/', { "this is" => "json" } # POST 'http://example.com/'
json     #=> parsed json response
raw_json #=> raw response body

get  '/errors/400'
status_code #=> 400
get! '/errors' #=> raise Capybara::Json::Error

get  '/errors', {}, { 'header' => '' } # set request headers
response_headers #=> get response headers
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].