Sha256: 1a681dc1c384b0ed125bd17a7f65f1594b9b2893c989b12fdb5780fc5cb895fb
Contents?: true
Size: 513 Bytes
Versions: 60
Compression:
Stored size: 513 Bytes
Contents
# frozen_string_literal: true require "spec_helper" shared_examples_for "timestamps interface" do describe "createdAt" do let(:query) { "{ createdAt }" } it "returns when was this query created at" do expect(response["createdAt"]).to eq(model.created_at.to_time.iso8601) end end describe "updatedAt" do let(:query) { "{ updatedAt }" } it "returns when was this query updated at" do expect(response["updatedAt"]).to eq(model.updated_at.to_time.iso8601) end end end
Version data entries
60 entries across 60 versions & 1 rubygems