Skip to content

Commit

Permalink
Remove sync_method settings from specs
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Apr 13, 2021
1 parent 457dfd9 commit 2da6e1d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FLIPPER_CLOUD_TOKEN=dY3qSdQ6w987EaqhhbNuSMp1
4 changes: 0 additions & 4 deletions spec/flipper/cloud/dsl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
cloud_configuration = Flipper::Cloud::Configuration.new({
token: "asdf",
sync_secret: "tasty",
sync_method: :webhook,
})
dsl = described_class.new(cloud_configuration)
expect(dsl.features).to eq(Set.new)
Expand All @@ -26,7 +25,6 @@
cloud_configuration = Flipper::Cloud::Configuration.new({
token: "asdf",
sync_secret: "tasty",
sync_method: :webhook,
})
dsl = described_class.new(cloud_configuration)
dsl.sync
Expand All @@ -37,7 +35,6 @@
cloud_configuration = Flipper::Cloud::Configuration.new({
token: "asdf",
sync_secret: "tasty",
sync_method: :webhook,
})
dsl = described_class.new(cloud_configuration)
expect(dsl.sync_secret).to eq("tasty")
Expand All @@ -52,7 +49,6 @@
cloud_configuration = Flipper::Cloud::Configuration.new({
token: "asdf",
sync_secret: "tasty",
sync_method: :webhook,
local_adapter: local_adapter
})
end
Expand Down
2 changes: 0 additions & 2 deletions spec/flipper/cloud/middleware_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@
Flipper::Cloud.new("regular") do |config|
config.local_adapter = Flipper::Adapters::OperationLogger.new(Flipper::Adapters::Memory.new)
config.sync_secret = "regular_tasty"
config.sync_method = :webhook
end
}

let(:env_flipper) {
Flipper::Cloud.new("env") do |config|
config.local_adapter = Flipper::Adapters::OperationLogger.new(Flipper::Adapters::Memory.new)
config.sync_secret = "env_tasty"
config.sync_method = :webhook
end
}

Expand Down
1 change: 0 additions & 1 deletion spec/flipper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@
cloud_configuration = Flipper::Cloud::Configuration.new({
token: "asdf",
sync_secret: "tasty",
sync_method: :webhook,
})

described_class.configure do |config|
Expand Down

0 comments on commit 2da6e1d

Please sign in to comment.