Sha256: 866761438bbc51b6c6387b25cfcd8368e984baaddab026ab7c9cd3727d90a287

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

require 'spec_helper'

module Zinc
	describe Zinc do
		context "credentials" do
			it "throws an error if request made without api credentials" do
				Zinc.api_key = nil
				expect { Zinc::Order.create }.to raise_error(Zinc::AuthenticationError)
			end
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zinc-0.1.0 spec/credentials_spec.rb