Sha256: 9550f582d5191c09906ff8ddb588ef9707784f0f3bb17eff796ca6d3e98310cf
Contents?: true
Size: 657 Bytes
Versions: 23
Compression:
Stored size: 657 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
23 entries across 23 versions & 1 rubygems