Sha256: 5e77ec3e06fba1399c765fb115b89903fccf486769395c60dc744bc519925f17
Contents?: true
Size: 689 Bytes
Versions: 2
Compression:
Stored size: 689 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cms_scanner-0.0.6 | spec/lib/controller_spec.rb |
cms_scanner-0.0.5 | spec/lib/controller_spec.rb |