Sha256: 3f247b2f29002fd3c54f9aa0db520a10d33ee204dc4dd4eb81493c269f22f3e6
Contents?: true
Size: 671 Bytes
Versions: 2
Compression:
Stored size: 671 Bytes
Contents
require 'spec_helper' describe Yaps do describe '#with_pushlisher_enable' do it 'should enable Yaps for block in its scope' do Yaps.configuration.enable = false Yaps.with_pushlisher_enable do expect(Yaps.configuration.enable).to eq(true) end end it 'should not change configuration state outside of its scope' do Yaps.configuration.enable = false Yaps.with_pushlisher_enable do end expect(Yaps.configuration.enable).to eq(false) end it ' should execute the block pass to it' do a = 5 Yaps.with_pushlisher_enable do a = 10 end expect(a).to eq(10) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yaps-0.1.0 | spec/yaps_spec.rb |
yaps-0.0.2 | spec/yaps_spec.rb |