Sha256: deea02b9d3368fbdb6299efd72239a35eac7949849d7c8a3f26056a2a5eb423f
Contents?: true
Size: 494 Bytes
Versions: 7
Compression:
Stored size: 494 Bytes
Contents
require 'spec_helper' module Alf module Shell describe Main, "--text, --json and the like" do before do Path.dir.chdir subject end let(:cmd){ Main.new } subject{ cmd.parse_options(argv) cmd } context 'when set to --json' do let(:argv){ ["--json"] } it 'should set the default renderer' do cmd.config.default_renderer.should be(Alf::Renderer::JSON) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems