Sha256: 6363f7e64126a6c8bb2c52db0962c84fd2b3b886633ccc54de020ffe5548c21e
Contents?: true
Size: 724 Bytes
Versions: 1
Compression:
Stored size: 724 Bytes
Contents
require 'spec_helper' require 'tolerate_json' describe TolerateJson do let(:json) { double(:json_string) } let(:indentation_string) { "\t" } describe '.pretty_print_json' do it 'calls TolerateJson::Formatter' do expect(TolerateJson::Formatter).to receive(:format_json_string).with(json, indentation_string) TolerateJson.pretty_print_json(json, indentation_string) end end describe '#pretty_print_json' do it 'calls TolerateJson::Formatter' do class T include TolerateJson end t = T.new expect(TolerateJson::Formatter).to receive(:format_json_string).with(json, indentation_string) t.pretty_print_json(json, indentation_string) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tolerate_json-0.0.4 | spec/lib/tolerate_json_spec.rb |