Sha256: 987ff5d0694d15fe28ade12cdf54c4c5b4e9359e171524ffb6c2c22023d05222
Contents?: true
Size: 702 Bytes
Versions: 3
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' describe CMSScanner::Controller do subject(:controller) { described_class::Base.new } context 'when parsed_options' do before { described_class::Base.parsed_options = parsed_options } let(:parsed_options) { { url: 'http://example.com/' } } its(:parsed_options) { should eq(parsed_options) } its(:formatter) { should be_a CMSScanner::Formatter::Cli } its(:target) { should be_a CMSScanner::Target } describe '#render' do it 'calls the formatter#render' do expect(controller.formatter).to receive(:render).with('test', { verbose: nil }, 'base') controller.render('test') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cms_scanner-0.0.4 | spec/lib/controller_spec.rb |
cms_scanner-0.0.3 | spec/lib/controller_spec.rb |
cms_scanner-0.0.2 | spec/lib/controller_spec.rb |