Sha256: 2eccd9af111c1697c95ad54b3acf2de3925ca922de1faa941400e6b593f237a1
Contents?: true
Size: 940 Bytes
Versions: 3
Compression:
Stored size: 940 Bytes
Contents
require "spec_helper" describe Chargify2::Call do subject { described_class.new({ "id" => 12, "api_id" => 34, "timestamp" => Time.now, "nonce" => "sense", "success" => true, "request" => { :foo => "bar", "zoo" => "cow", }, :response => { "foo" => "bar", :zoo => "cow", :result => { } } }) } # Note: Rspec does weird stuff # with opencascade in should comparison # hence the locals describe "#request" do it "allows dot notation method chaining" do foo = subject.request.foo zoo = subject.request.zoo expect(foo).to eql("bar") expect(zoo).to eql("cow") end end describe "#response" do it "allows dot notation method chaining" do foo = subject.response.foo zoo = subject.response.zoo expect(foo).to eql("bar") expect(zoo).to eql("cow") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chargify2-0.2.8 | spec/representations/call_spec.rb |
chargify2-0.2.7 | spec/representations/call_spec.rb |
chargify2-0.2.6 | spec/representations/call_spec.rb |