Skip to content

Commit

Permalink
Silence more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Aug 27, 2024
1 parent 028a9bb commit 110820b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/flipper/engine_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
it "initializes cloud configuration" do
stub_request(:get, /flippercloud\.io/).to_return(status: 200, body: "{}")

application.initialize!
silence { application.initialize! }

expect(Flipper.instance).to be_a(Flipper::Cloud::DSL)
expect(Flipper.instance.instrumenter).to be_a(Flipper::Cloud::Telemetry::Instrumenter)
Expand Down Expand Up @@ -263,7 +263,7 @@
}

it "configures webhook app" do
application.initialize!
silence { application.initialize! }

stub = stub_request(:get, "https://www.flippercloud.io/adapter/features?exclude_gate_names=true").with({
headers: { "flipper-cloud-token" => ENV["FLIPPER_CLOUD_TOKEN"] },
Expand All @@ -278,7 +278,7 @@

context "without CLOUD_SYNC_SECRET" do
it "does not configure webhook app" do
application.initialize!
silence { application.initialize! }

post "/_flipper"
expect(last_response.status).to eq(404)
Expand All @@ -288,7 +288,7 @@
context "without FLIPPER_CLOUD_TOKEN" do
it "gracefully skips configuring webhook app" do
ENV["FLIPPER_CLOUD_TOKEN"] = nil
application.initialize!
silence { application.initialize! }
expect(Flipper.instance).to be_a(Flipper::DSL)

post "/_flipper"
Expand Down Expand Up @@ -324,7 +324,7 @@
end

it "enables cloud" do
application.initialize!
silence { application.initialize! }
expect(ENV["FLIPPER_CLOUD_TOKEN"]).to eq("credentials-token")
expect(ENV["FLIPPER_CLOUD_SYNC_SECRET"]).to eq("credentials-secret")
expect(Flipper.instance).to be_a(Flipper::Cloud::DSL)
Expand All @@ -339,7 +339,7 @@

describe "config.actor_limit" do
let(:adapter) do
application.initialize!
silence { application.initialize! }
Flipper.adapter.adapter.adapter
end

Expand Down

0 comments on commit 110820b

Please sign in to comment.