Sha256: 2a7ccc4cb25edbb91a329d13d300d7e12798784a6b868bcf87e70602b4c099a3

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

require 'simplecov'
require 'minitest/autorun'
require 'coveralls'

if ENV['COVERALLS']
  Coveralls.wear!
end

require 'surrounded'
require 'surrounded/context'

User = Struct.new(:name)
class User
  include Surrounded
end

class TestContext
  extend Surrounded::Context

  setup(:user, :other_user)

  trigger :access_other_object do
    user.other_user.name
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
surrounded-0.1.0 test/test_helper.rb