Skip to content

Commit

Permalink
Add failing test for undefined method
Browse files Browse the repository at this point in the history
  • Loading branch information
rahearn authored and ronaldtse committed Jul 10, 2024
1 parent 3e62172 commit a05431c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/oscal/assessment_plan_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

require_relative "../spec_helper"

RSpec.describe Oscal::AssessmentPlan::AssessmentPlan do
let(:fields) do
{
uuid: "4d56d1ab-d91e-4f7a-9055-1883c4e580b8",
metadata: {},
import_ssp: { href: "./ssp.json" },
reviewed_controls: { control_selections: [] },
}
end
subject { described_class.new(fields) }

describe "#to_json" do
it "generates a json representation of the assessment plan" do
expect(subject.to_json).to be_kind_of(String)
end
end
end
2 changes: 2 additions & 0 deletions spec/oscal/catalog_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require_relative "../spec_helper"

RSpec.describe Oscal::Catalog do
let(:subject) do
Oscal::Catalog.load_from_yaml(
Expand Down

0 comments on commit a05431c

Please sign in to comment.