Sha256: 8eb2b0a034dd25d5c1f4892aa901f126db2f0ac8a3e5600a0836f9bee989f79e

Contents?: true

Size: 346 Bytes

Versions: 7

Compression:

Stored size: 346 Bytes

Contents

require 'spec_helper'

describe "incorrect api key" do
  let(:markup) { Zemanta::Markup.fetch("some text") }

  it "raises exception when 403 error returned" do
    stub_zemanta_exception!
    expect { markup }.to raise_error("Zemanta returned '<h1>403 Developer Inactive</h1>' exception. Quite possibly you passed incorrect api_key.")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
zemanta_client-0.0.9 spec/zemanta/integration/incorrect_api_key_spec.rb
zemanta_client-0.0.8 spec/zemanta/integration/incorrect_api_key_spec.rb
zemanta_client-0.0.7 spec/zemanta/integration/incorrect_api_key_spec.rb
zemanta_client-0.0.6 spec/zemanta/integration/incorrect_api_key_spec.rb
zemanta_client-0.0.5 spec/zemanta/integration/incorrect_api_key_spec.rb
zemanta_client-0.0.4 spec/zemanta/integration/incorrect_api_key_spec.rb
zemanta_client-0.0.3 spec/zemanta/integration/incorrect_api_key_spec.rb