test/test_helper.rb in surrounded-0.1.0 vs test/test_helper.rb in surrounded-0.2.0
- old
+ new
@@ -7,12 +7,15 @@
end
require 'surrounded'
require 'surrounded/context'
-User = Struct.new(:name)
class User
include Surrounded
+ def initialize(name)
+ @name = name
+ end
+ attr_reader :name
end
class TestContext
extend Surrounded::Context
\ No newline at end of file