Sha256: d5a3af1f5e6c853863d3c39d9cc9ec049d8e8ffac75749148764c36a65866961
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
require "spec_helper" RSpec.describe <%= configuration.project_namespaced_class %>::CLI::Actions::Config do subject(:action) { described_class.new } include_context "with application dependencies" describe "#call" do it "edits configuration" do action.call :edit expect(kernel).to have_received(:system).with(include("EDITOR")) end it "views configuration" do action.call :view expect(kernel).to have_received(:system).with(include("cat")) end it "logs invalid configuration" do action.call :bogus expect(logger.reread).to match(/🛑.+Invalid configuration selection: bogus./) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-19.8.0 | lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/actions/config_spec.rb.erb |