Open
Show file tree
Hide file tree
Changes from 1 commit
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
PrevPrevious commit
Next Next commit
test: ensure RspecApiDocumentation.configuration.app is set
  • Loading branch information
@bf4
bf4 committedApr 25, 2024
commit e1ba3e47e476b34632a7a97967fef74c1c8048f4
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,6 +12,12 @@
resource "Order" do
explanation "Order resource explanation"

let(:context) { |example| double(:app => StubApp, :example => example) }

before do
RspecApiDocumentation.configuration.app ||= context.app
end

describe "example metadata" do
subject { |example| example.metadata }

Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,6 +9,10 @@

subject { test_client }

before do
RspecApiDocumentation.configuration.app ||= context.app
end

it { expect(subject).to be_a(RspecApiDocumentation::RackTestClient) }

its(:context) { should equal(context) }
Expand Down