Sha256: c32490df9a554600a63dbf751ba586b31b31c72dd998af3315694b78a785593f
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
require 'spec_helper' describe Ruroku::KeySet do before do @set = Ruroku::KeySet.new stubbed_api @set_api = @set.api end describe '#add' do it 'maps to post_key api method' do @set_api.should_receive :post_key @set.add 'key content' end end describe '#delete' do it 'maps to delete_key api method' do @set_api.should_receive :delete_key @set.delete 'example@me.com' end end describe '#delete_all' do it 'maps to delete_keys api method' do @set_api.should_receive :delete_keys @set.delete_all end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruroku-0.0.3 | spec/ruroku/key_set_spec.rb |
ruroku-0.0.2 | spec/ruroku/key_set_spec.rb |