Sha256: 92ed8495d2a43f842a3d4208fa9235559e2b209ffb1731935547f1b179c0b44b
Contents?: true
Size: 676 Bytes
Versions: 3
Compression:
Stored size: 676 Bytes
Contents
require "spec_helper" RSpec.describe <%= configuration.project_class %>::CLI::Actions::Config do subject(:action) { described_class.new } include_context "with application container" 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 expectation = proc { action.call :bogus } expect(&expectation).to output(/Invalid configuration selection: bogus./).to_stdout end end end
Version data entries
3 entries across 3 versions & 1 rubygems