Sha256: 6b25253a9ea0d395a880d336d06dca3f6e4f3bae26d5d8fb3faf57a9181dffda

Contents?: true

Size: 458 Bytes

Versions: 5

Compression:

Stored size: 458 Bytes

Contents

describe FilmSnob do
  describe "not supported URLs" do
    it "should handle non-supported URLs gracefully" do
      snob = FilmSnob.new("http://hardscrabble.net")
      expect(snob).to_not be_embeddable
    end

    it "should raise an exception if you push your luck" do
      snob = FilmSnob.new("http://hardscrabble.net")
      expect(snob).to_not be_embeddable
      expect { snob.id }.to raise_error(FilmSnob::NotSupportedURLError)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
film_snob-0.6.4 spec/film_snob_spec.rb
film_snob-0.6.3 spec/film_snob_spec.rb
film_snob-0.6.2 spec/film_snob_spec.rb
film_snob-0.6.1 spec/film_snob_spec.rb
film_snob-0.6.0 spec/film_snob_spec.rb