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.26.8 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.4 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.3 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.7 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.5 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.2 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.1 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.4 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.0 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.3 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.0.rc2 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.27.0.rc1 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.2 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.1 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.0 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.0.rc2 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.26.0.rc1 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.25.2 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.25.1 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb
decidim-core-0.25.0 lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb