require 'spec_helper' describe Hara do it 'Hara::Application should equal with App' do App = Class.new do include Hara::App end App.should == Hara::Application end it 'Hara.env should be development' do Hara.env.should == :development end it 'Hara.encode_msg & decode_msg should work' do action = 'hello_world' args = ['hello', 'world'] action_d, args_d = Hara.decode_msg Hara.encode_msg(action, *args) action.should == action_d args.should == args_d end end