Sha256: ef65cc84d3355ea901a746917a165409dfb710524ee9d215586ee76901f4a4ee
Contents?: true
Size: 609 Bytes
Versions: 4
Compression:
Stored size: 609 Bytes
Contents
require 'simplecov' require 'minitest/autorun' unless ENV['MUTANT'] 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
surrounded-0.9.11 | test/test_helper.rb |
surrounded-0.9.10 | test/test_helper.rb |
surrounded-0.9.9 | test/test_helper.rb |
surrounded-0.9.8 | test/test_helper.rb |