Sha256: 8b19488f293b4349d365e11393226f70f7594a787a760ae715ecb0f30cb4ae3d
Contents?: true
Size: 410 Bytes
Versions: 4
Compression:
Stored size: 410 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 setup(:user, :other_user) trigger :access_other_object do user.other_user.name end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
surrounded-0.3.1 | test/test_helper.rb |
surrounded-0.3.0 | test/test_helper.rb |
surrounded-0.2.1 | test/test_helper.rb |
surrounded-0.2.0 | test/test_helper.rb |