Sha256: 422fe7feb72fefd45f0435174cc6db8b32e12834f2f50e49cfefcffe7e632bc8

Contents?: true

Size: 311 Bytes

Versions: 5

Compression:

Stored size: 311 Bytes

Contents

require 'spec_helper'

describe WappalyzerRb::Detector do
  let(:mock_response) do
    mock(:response, body: "nobody", :[] => nil)
  end

  it "should initialize" do
    WappalyzerRb::Detector.any_instance.stub(:response).and_return(mock_response)
    WappalyzerRb::Detector.new('http://someurl.com')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wappalyzer_rb-0.0.7 spec/lib/wappalyzer_rb_spec.rb
wappalyzer_rb-0.0.6 spec/lib/wappalyzer_rb_spec.rb
wappalyzer_rb-0.0.5 spec/lib/wappalyzer_rb_spec.rb
wappalyzer_rb-0.0.4 spec/lib/wappalyzer_rb_spec.rb
wappalyzer_rb-0.0.3 spec/lib/wappalyzer_rb_spec.rb