Sha256: bc0f6f4e40dd69224342e873fa1001e9992fa13b6ceb00cd5cf060221d789abc
Contents?: true
Size: 520 Bytes
Versions: 3
Compression:
Stored size: 520 Bytes
Contents
require 'spec_helper' require 'riveter/spec_helper' describe "Spec Helper" do describe Mock::Block do it "yields a proc object" do Mock::Block.new().to_proc.should be_a(Proc) end it "the proc invokes the call method" do expect_any_instance_of(Mock::Block).to receive(:call).at_least(:once) Mock::Block.new().to_proc.call end it "default call method raises an error" do expect { Mock::Block.new().call }.to raise_error(NotImplementedError) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riveter-0.0.4 | spec/riveter/spec_helper_spec.rb |
riveter-0.0.3 | spec/riveter/spec_helper_spec.rb |
riveter-0.0.1 | spec/riveter/spec_helper_spec.rb |