Sha256: 384d9d7c89d836ef947a6e6d8b8cf6bdff7212f63fc6cd19c15e024352255c6f
Contents?: true
Size: 718 Bytes
Versions: 2
Compression:
Stored size: 718 Bytes
Contents
require 'spec_helper.rb' describe Reviewed do describe 'accessors' do after(:each) do Reviewed.global_params = nil end it 'global params' do Reviewed.global_params = { foo: 'bar' } Reviewed.global_params.should eql( { foo: 'bar' } ) end end describe '.global_params' do it 'returns a hash' do Reviewed.global_params.should eql({}) end end describe '.client' do it 'returns a Reviewed::Client' do Reviewed.client.should be_an_instance_of(Reviewed::Client) end end describe '.method_missing' do it 'delegates to the client' do Reviewed::Client.any_instance.should_receive(:api_key) Reviewed.api_key end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reviewed-0.1.2 | spec/reviewed_spec.rb |
reviewed-0.1.1 | spec/reviewed_spec.rb |