Sha256: 85dd9242057b251e91a3b46172113998198563accef09e24a967dc57a5a47788
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
require 'spec_helper' require 'saorin/server/base' describe Saorin::Server::Base do it_should_behave_like 'returning valid response' do let(:process) do handler = Saorin::Test::Handler.new class VanillaServer include Saorin::Server::Base end server = VanillaServer.new handler proc do |input| data = server.process_request input data && JSON.load(data) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saorin-0.4.1 | spec/server/base_spec.rb |
saorin-0.4.0 | spec/server/base_spec.rb |