spec/spec_helper.rb in startback-0.12.1 vs spec/spec_helper.rb in startback-0.12.2
- old
+ new
@@ -9,9 +9,29 @@
RSpec.configure do |c|
c.include SpecHelpers
end
+class SubContext < Startback::Context
+ attr_accessor :foo
+ h_factory do |c,h|
+ c.foo = h["foo"]
+ end
+ h_dump do |h|
+ h.merge!("foo" => foo)
+ end
+end
+
+class SubContext
+ attr_accessor :bar
+ h_factory do |c,h|
+ c.bar = h["bar"]
+ end
+ h_dump do |h|
+ h.merge!("bar" => bar)
+ end
+end
+
class User
class Changed < Startback::Event
end
end