Sha256: 2c83027a239d5f8e4f12ab3269d6e32195c045a4efdde563eaf56d21a638cbd4
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
require 'sinatra' require 'json' class TestServer < Sinatra::Base @@url = 'http://localhost:9292' use Rack::Auth::Basic, "SirenClient Test API" do |username, password| username == 'admin' and password == '1234' end before do content_type 'application/vnd.siren+json' end end # Require all the endpoint files that build the api. Dir[__dir__ + "/endpoints/*.rb"].each {|file| require file }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
siren_client-0.1.1 | spec/support/test_server.rb |
siren_client-0.1 | spec/support/test_server.rb |