Sha256: fea2a18e241e111ad381d5fcdc2002970d6143acb88a68f1f6bf14d300f0bfaa
Contents?: true
Size: 509 Bytes
Versions: 28
Compression:
Stored size: 509 Bytes
Contents
require 'spec_helper' set :os, {:family => 'base'} describe json_file('example.json') do let(:stdout) {<<EOF { "json": { "title": "this is a json", "array" : [ { "title": "array 1" }, { "title": "array 2" } ] } } EOF } its(:content) { should include('json') } its(:content) { should include('json' => include('title' => 'this is a json')) } its(:content) { should include('json' => include('array' => include('title' => 'array 2'))) } end
Version data entries
28 entries across 28 versions & 2 rubygems