spec/app_spec.rb in hara-0.2.2 vs spec/app_spec.rb in hara-0.3.0

- old
+ new

@@ -4,38 +4,38 @@ before :all do Class.new do include Hara::App def after_connect - @states = [] + @states = [] end def before_action action, *args - @states << [:before_action, action, args] + @states << [:before_action, action, args] end def after_action action, *args - @states << [:after_action, action, args] + @states << [:after_action, action, args] end def on_close close_info - @states << :closed + @states << :closed end def action_missing action, *args - socket.send [:action_missing, action, args] + send_msg [:action_missing, action, args] end define_action :hello do |msg| - socket.send "hello#{msg}" + send_msg "hello#{msg}" end define_action :exit do - close 3333, "Bye" + close 3333, "Bye" end def states - @states + @states end end end before :each do