spec/commands/sql/instances/locking_spec.rb in brightbox-cli-3.3.0 vs spec/commands/sql/instances/locking_spec.rb in brightbox-cli-4.0.0.rc2

- old
+ new

@@ -17,11 +17,11 @@ cache_access_token(config, "f83da712e6299cda953513ec07f7a754f747d727") end describe "lock" do context "when resource is known" do - let(:argv) { %w(sql instances lock dbs-12345) } + let(:argv) { %w[sql instances lock dbs-12345] } before do expect(resource_class).to receive(:find_or_call).with(resource_ids).and_return(results) expect(resource).to receive(:lock!) end @@ -30,11 +30,11 @@ expect(stderr).to match("Locking #{resource_id}") end end context "when resource is unknown" do - let(:argv) { %w(sql instances lock dbs-12345) } + let(:argv) { %w[sql instances lock dbs-12345] } before do expect(resource_class).to receive(:find).with(resource_id).and_raise(Brightbox::Api::NotFound) end @@ -44,11 +44,11 @@ end end describe "unlock" do context "when resource is known" do - let(:argv) { %w(sql instances unlock dbs-12345) } + let(:argv) { %w[sql instances unlock dbs-12345] } before do expect(resource_class).to receive(:find_or_call).with(resource_ids).and_return(results) expect(resource).to receive(:unlock!) end @@ -57,10 +57,10 @@ expect(stderr).to match("Unlocking #{resource_id}") end end context "when resource is unknown" do - let(:argv) { %w(sql instances unlock dbs-12345) } + let(:argv) { %w[sql instances unlock dbs-12345] } before do expect(resource_class).to receive(:find).with(resource_id).and_raise(Brightbox::Api::NotFound) end