Skip to content

Commit

Permalink
Merge pull request #125 from alphagov/remove-specialist-document-exam…
Browse files Browse the repository at this point in the history
…ple-schema-test

Switch out testing specialist document schema type
  • Loading branch information
minhngocd authored Oct 4, 2024
2 parents d44c3a5 + 6b4e6b2 commit c0d7424
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/lib/example_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
RSpec.describe GovukSchemas::Example do
describe ".find_all" do
it "returns all the examples" do
examples = GovukSchemas::Example.find_all("specialist_document")
examples = GovukSchemas::Example.find_all("call_for_evidence")

expect(examples).to be_a(Array)
expect(examples.size > 10).to eql(true)
expect(examples.size > 1).to eql(true)
end
end

describe ".find" do
it "returns one example" do
example_content_item = GovukSchemas::Example.find("specialist_document", example_name: "drug-safety-update")
example_content_item = GovukSchemas::Example.find("call_for_evidence", example_name: "call_for_evidence_outcome")

expect(example_content_item).to be_a(Hash)
end
end

describe ".examples_path" do
let(:in_examples) { false }
let(:schema_name) { "specialist_document" }
let(:schema_name) { "call_for_evidence" }
before do
allow(Dir)
.to receive(:exist?)
Expand Down

0 comments on commit c0d7424

Please sign in to comment.