spec/evostream/commands/destroy_spec.rb in evostream-event-1.0.0.pre.59 vs spec/evostream/commands/destroy_spec.rb in evostream-event-1.0.0.pre.65

- old
+ new

@@ -1,28 +1,27 @@ # frozen_string_literal: true require 'spec_helper' describe Evostream::Commands::Destroy do - let(:command) { Evostream::Commands::Destroy.new(cmd) } + let(:command) { Evostream::Commands::Destroy } context 'id' do - let(:arg_value) { Faker::Number.between(1, 99) } - let(:argument) { 'id' } + let(:cmd) { { id: Faker::Number.between(1, 99).to_s } } include_examples 'command' end context 'remove_hls_hds_files' do let(:arg_value) { Faker::Number.between(0, 1) } let(:argument) { 'remove_hls_hds_files' } - include_examples 'command' + include_examples 'command raise' end context 'group_name' do let(:arg_value) { Faker::Pokemon.name } let(:argument) { 'group_name' } - include_examples 'command' + include_examples 'command raise' end end