Skip to content

Commit 360166b

Browse files
committed
Adding and updating tests
1 parent 85199a5 commit 360166b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

spec/services/cms/collections/site_wide_banner_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
expect(described_class.cache_expiry).to eq(5.minutes)
66
end
77

8+
it "should have correct resource_key" do
9+
expect(described_class.resource_key).to eq("site-wide-banners")
10+
end
11+
812
it_should_behave_like "a strapi graphql collection single query", %w[textContent startTime endTime]
913
it_should_behave_like "a strapi graphql collection all query", %w[textContent startTime endTime]
1014
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require "rails_helper"
2+
3+
RSpec.describe Cms::Providers::Strapi::Queries::SiteWideBanner do
4+
it_should_behave_like "a strapi graphql embed", {
5+
required_fields: %w[
6+
startTime
7+
endTime
8+
textContent
9+
]}
10+
end

0 commit comments

Comments
 (0)