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

Version Path
decidim-core-0.29.1 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.28.4 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.9 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.29.0 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.28.3 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.8 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.29.0.rc4 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.29.0.rc3 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.29.0.rc2 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.29.0.rc1 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.28.2 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.7 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.28.1 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.6 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.10 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.9 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.28.0 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.5 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.28.0.rc5 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.28.0.rc4 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb