Sha256: 9587c67ff0e43b290db8e0b8708a73c48fe7cd03679eeee41798d03eae01c9c4
Contents?: true
Size: 546 Bytes
Versions: 18
Compression:
Stored size: 546 Bytes
Contents
# frozen_string_literal: true describe Nanoc::CLI::Commands::ShowPlugins, site: true, stdio: true do describe '#run' do it 'can be invoked' do Nanoc::CLI.run(['show-plugins']) end context 'site with plugins' do before do File.write('lib/default.rb', 'Nanoc::Filter.define(:show_plugins_x) {}') end it 'outputs show_plugins_x under the right section' do expect { Nanoc::CLI.run(['show-plugins']) } .to output(/ custom:\n show_plugins_x/).to_stdout end end end end
Version data entries
18 entries across 18 versions & 1 rubygems