Sha256: f9fcfb8aabd233f75869f583e024ef62fa7b259196d1c8ea0cf815fdc137ba37

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

require 'spec_helper'

describe Alephant::Scout::Url do
  describe '.valid?' do
    context 'using a valid URL' do
      let(:url) { 'http://bbc.co.uk/persian/world' }
      specify { expect(described_class.valid? url).to be }
    end

    context 'using an invalid URL' do
      let(:url) { 'http://bbc.co.uk/batman' }
      specify { expect(described_class.valid? url).to be false}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alephant-scout-1.0.0 spec/integration/url_spec.rb