Sha256: d7dbf6ae6d04052a2003023539dda20720c33f4a2b98274db699cedb9066f446
Contents?: true
Size: 283 Bytes
Versions: 3
Compression:
Stored size: 283 Bytes
Contents
require "spec_helper" describe Docks::OpenStruct do let(:backing) do { foo: "bar" } end subject { described_class.new(backing) } describe "as_json" do it "directly returns its table as JSON" do expect(subject.to_json).to eq backing.to_json end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docks_app-0.0.3 | spec/lib/ostruct_spec.rb |
docks_app-0.0.2 | spec/lib/ostruct_spec.rb |
docks_app-0.0.1 | spec/lib/ostruct_spec.rb |