Sha256: 513c53c85a9ee6b0ad1ed2522d1f6367c3c89e7028da6638a11c3f5d310d4888
Contents?: true
Size: 687 Bytes
Versions: 2
Compression:
Stored size: 687 Bytes
Contents
require "spec_helper" RSpec.describe <%= configuration.project_namespaced_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
2 entries across 2 versions & 1 rubygems