spec/commnad_spec.rb in command_mapper-0.2.1 vs spec/commnad_spec.rb in command_mapper-0.3.0

- old
+ new

@@ -806,11 +806,11 @@ let(:params) do {opt1: opt1, arg1: arg1} end it "must initialize a new command with the Hash of params and call #run_command" do - if RUBY_VERSION < '3.' || RUBY_ENGINE == 'truffleruby' + if RUBY_VERSION < '3.' expect(subject).to receive(:new).with({},params).and_return(command_instance) else expect(subject).to receive(:new).with(params).and_return(command_instance) end @@ -844,11 +844,11 @@ let(:params) do {opt1: opt1, arg1: arg1} end it "must initialize a new command with the Hash of params and call #spawn_command" do - if RUBY_VERSION < '3.' || RUBY_ENGINE == 'truffleruby' + if RUBY_VERSION < '3.' expect(subject).to receive(:new).with({},params).and_return(command_instance) else expect(subject).to receive(:new).with(params).and_return(command_instance) end @@ -882,11 +882,11 @@ let(:params) do {opt1: opt1, arg1: arg1} end it "must initialize a new command with the Hash of params and call #capture_command" do - if RUBY_VERSION < '3.' || RUBY_ENGINE == 'truffleruby' + if RUBY_VERSION < '3.' expect(subject).to receive(:new).with({},params).and_return(command_instance) else expect(subject).to receive(:new).with(params).and_return(command_instance) end @@ -920,11 +920,11 @@ let(:params) do {opt1: opt1, arg1: arg1} end it "must initialize a new command with the Hash of params and call #popen_command" do - if RUBY_VERSION < '3.' || RUBY_ENGINE == 'truffleruby' + if RUBY_VERSION < '3.' expect(subject).to receive(:new).with({},params).and_return(command_instance) else expect(subject).to receive(:new).with(params).and_return(command_instance) end @@ -958,10 +958,10 @@ let(:params) do {opt1: opt1, arg1: arg1} end it "must initialize a new command with the Hash of params and call #sudo_command" do - if RUBY_VERSION < '3.' || RUBY_ENGINE == 'truffleruby' + if RUBY_VERSION < '3.' expect(subject).to receive(:new).with({},params).and_return(command_instance) else expect(subject).to receive(:new).with(params).and_return(command_instance) end