Sha256: a1d137f348c897092a4db7ad5afb2fb831277eebe2736e691047a2cd4cf968ee

Contents?: true

Size: 247 Bytes

Versions: 6

Compression:

Stored size: 247 Bytes

Contents

class Shoulda::Context
  def expects(name = nil, &expects_block)
    context nil do
      setup do
        expects_block.bind(self).call
      end
      
      should "meet expectation #{name}" do
        # empty body
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
always_execute-0.1.3 lib/shoulda_expects.rb
always_execute-0.1.2 lib/shoulda_expects.rb
always_execute-0.1.1 lib/shoulda_expects.rb
always_execute-0.1.0 lib/shoulda_expects.rb
always_execute-0.0.2 lib/shoulda_expects.rb
always_execute-0.0.1 lib/shoulda_expects.rb