Sha256: af31ed7f74438a76f5f97a5733542c310e5fc346f93c63292d1ecf5d0cb9ba9d
Contents?: true
Size: 546 Bytes
Versions: 3
Compression:
Stored size: 546 Bytes
Contents
require 'spec_helper' require 'cape' require 'cape/dsl' describe Cape do Cape::DSL.instance_methods.each do |m| it { should respond_to(m) } end end describe '#Cape' do it 'should yield the Cape module if given a unary block' do yielded = nil Cape do |c| yielded = c end yielded.should == Cape end it 'should accept a nullary block' do Cape do end end it 'should expire the Rake tasks cache when leaving the block' do Cape do rake.should_receive(:expire_cache!).once end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cape-1.7.0 | spec/cape_spec.rb |
cape-1.6.2 | spec/cape_spec.rb |
cape-1.6.1 | spec/cape_spec.rb |