Sha256: d47e66a5a974811bcc81250f408a3f981fd3d2104770deefdda6b224bbbe0285
Contents?: true
Size: 588 Bytes
Versions: 8
Compression:
Stored size: 588 Bytes
Contents
require 'simplecov' require 'minitest/autorun' require 'coveralls' if ENV['COVERALLS'] Coveralls.wear! end require 'surrounded' require 'surrounded/context' class User include Surrounded def initialize(name) @name = name end attr_reader :name end class TestContext extend Surrounded::Context initialize(:user, :other_user) trigger :access_other_object do user.other_user.name end def block_method(*args, &block) block.call(*args, self) end trigger :block_method def regular_method_trigger true end trigger :regular_method_trigger end
Version data entries
8 entries across 8 versions & 1 rubygems