Sha256: 9b9ef5b4622391c25b4b2b6e5567979dd746781724f17475e4f248c44a573d37

Contents?: true

Size: 415 Bytes

Versions: 8

Compression:

Stored size: 415 Bytes

Contents

require 'spec_helper'

[:WordPress, :PHP].each do |platform|
  describe CMSScanner::Target do
    subject(:target) do
      described_class.new(url).extend(described_class::Platform.const_get(platform))
    end
    let(:url)      { 'http://ex.lo' }
    let(:fixtures) { File.join(FIXTURES, 'target', 'platform', platform.to_s.downcase) }

    it_behaves_like described_class::Platform.const_get(platform)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cms_scanner-0.0.9 spec/lib/target/platforms_spec.rb
cms_scanner-0.0.8 spec/lib/target/platforms_spec.rb
cms_scanner-0.0.7 spec/lib/target/platforms_spec.rb
cms_scanner-0.0.6 spec/lib/target/platforms_spec.rb
cms_scanner-0.0.5 spec/lib/target/platforms_spec.rb
cms_scanner-0.0.4 spec/lib/target/platforms_spec.rb
cms_scanner-0.0.3 spec/lib/target/platforms_spec.rb
cms_scanner-0.0.2 spec/lib/target/platforms_spec.rb