Sha256: 17b0c93607e9731af8f51567a016300edc53cf6678381daf4a0cab90d9405c51
Contents?: true
Size: 958 Bytes
Versions: 7
Compression:
Stored size: 958 Bytes
Contents
# frozen_string_literal: true require "spec_helpers" describe Wayfarer::CLI::Generate, cli: true do subject(:cli) { Wayfarer::CLI::Runner } describe "generate project" do it "outputs" do expected_output = <<-OUT create foobar create foobar/Gemfile create foobar/app/jobs/foobar.rb OUT expect { cli.start(%w[generate project foobar]) }.to output(expected_output).to_stdout end it "creates the project directory" do expect { cli.start(%w[generate project foobar]) }.to change { File.directory?("foobar") }.to(true) end it "creates the Gemfile" do expect { cli.start(%w[generate project foobar]) }.to change { File.file?("foobar/Gemfile") }.to(true) end it "creates the job" do expect { cli.start(%w[generate project foobar]) }.to change { File.file?("foobar/app/jobs/foobar.rb") }.to(true) end end end
Version data entries
7 entries across 7 versions & 1 rubygems