Sha256: 612388a19b0c7a456d00467f0f9efa3200574fd9b5eabdce7b970840a89b6441
Contents?: true
Size: 488 Bytes
Versions: 4
Compression:
Stored size: 488 Bytes
Contents
require '<%= subcmd_path %>' RSpec.describe <%= object = cmd_object_parts.join('::') %> do it "executes `<%= "#{cmd_name_underscored} #{subcmd_name_underscored}" %>` command successfully" do output = StringIO.new <%- cmd_options.each do |option| -%> <%= option %> = <%= option == 'options' ? {} : 'nil' %> <%- end -%> command = <%= object %>.new(<%= cmd_options.join(', ') %>) command.execute(output: output) expect(output.string).to eq("OK\n") end end
Version data entries
4 entries across 4 versions & 1 rubygems