spec/unit/membership_cache_spec.rb in warden-github-1.3.0 vs spec/unit/membership_cache_spec.rb in warden-github-1.3.1
- old
+ new
@@ -20,9 +20,13 @@
it 'does not invoke the block' do
expect { |b| cache.fetch_membership('foo', 'bar', &b) }.
to_not yield_control
end
+
+ it 'converts type and id to strings' do
+ cache.fetch_membership(:foo, :bar).should be_truthy
+ end
end
context 'when cache expired' do
let(:cache) do
described_class.new('foo' => {