Sha256: bff6e8f7e7e290b41861cd188bfb0f3cdfb0b303e902858489bfb481f3d59727
Contents?: true
Size: 419 Bytes
Versions: 12
Compression:
Stored size: 419 Bytes
Contents
require 'spec_helper' Rspec::Matchers.define :be_pending do match do |example| example.metadata[:pending] end end describe "an example" do context "with no block" do it "is listed as pending" do group = Rspec::Core::ExampleGroup.create('group') do it "has no block" end group.run(stub('reporter').as_null_object) group.examples.first.should be_pending end end end
Version data entries
12 entries across 12 versions & 1 rubygems