spec/flipper/cloud/dsl_spec.rb in flipper-1.1.2 vs spec/flipper/cloud/dsl_spec.rb in flipper-1.2.0

- old
+ new

@@ -16,11 +16,11 @@ it 'delegates sync to cloud configuration' do stub = stub_request(:get, "https://www.flippercloud.io/adapter/features?exclude_gate_names=true"). with({ headers: { - 'Flipper-Cloud-Token'=>'asdf', + 'flipper-cloud-token'=>'asdf', }, }).to_return(status: 200, body: '{"features": {}}', headers: {}) cloud_configuration = Flipper::Cloud::Configuration.new({ token: "asdf", sync_secret: "tasty", @@ -63,14 +63,14 @@ expect(local_adapter.count(:get)).to be(1) end it "sends writes to cloud and local" do add_stub = stub_request(:post, "https://www.flippercloud.io/adapter/features"). - with({headers: {'Flipper-Cloud-Token'=>'asdf'}}). - to_return(status: 200, body: '{}', headers: {}) + with({headers: {'flipper-cloud-token'=>'asdf'}}). + to_return(status: 200, body: '{}') enable_stub = stub_request(:post, "https://www.flippercloud.io/adapter/features/foo/boolean"). - with(headers: {'Flipper-Cloud-Token'=>'asdf'}). - to_return(status: 200, body: '{}', headers: {}) + with(headers: {'flipper-cloud-token'=>'asdf'}). + to_return(status: 200, body: '{}') subject.enable(:foo) expect(local_adapter.count(:add)).to be(1) expect(local_adapter.count(:enable)).to be(1)