Sinatraのあらかると

記録することで、環境構築で悩まない。

test

Sinatraのテストコード考察

Testing Sinatra with Rack::Test ENV['RACK_ENV'] = 'test' require 'hello_world' # <-- your sinatra app require 'rspec' require 'rack/test' describe 'The HelloWorld App' do include Rack::Test::Methods def app Sinatra::Application end it "say…

Copyright © 2007-2017 Takayuki Kamiyama. All Rights Reserved.