spec/flipper/cloud/dsl_spec.rb in flipper-cloud-0.20.4 vs spec/flipper/cloud/dsl_spec.rb in flipper-cloud-0.21.0.rc1
- old
+ new
@@ -7,11 +7,10 @@
RSpec.describe Flipper::Cloud::DSL do
it 'delegates everything to flipper instance' do
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)
expect(dsl.enabled?(:foo)).to be(false)
end
@@ -24,22 +23,20 @@
},
}).to_return(status: 200, body: '{"features": {}}', headers: {})
cloud_configuration = Flipper::Cloud::Configuration.new({
token: "asdf",
sync_secret: "tasty",
- sync_method: :webhook,
})
dsl = described_class.new(cloud_configuration)
dsl.sync
expect(stub).to have_been_requested
end
it 'delegates sync_secret to cloud configuration' do
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")
end
@@ -50,10 +47,9 @@
let(:cloud_configuration) do
cloud_configuration = Flipper::Cloud::Configuration.new({
token: "asdf",
sync_secret: "tasty",
- sync_method: :webhook,
local_adapter: local_adapter
})
end
subject do