You are on page 1of 35

Sinatra Padrino

- Padrino in -

2011/10/29 @
Uchio Kondo (@udzura)

(@udzura)

Rubyist()

Groovy

Haskell

()

: Rack, Sinatra, Padrino


Rails3, TDD, Linux,

works

http://blog.udzura.jp/

Padrino

Padrino framework contributor

Padrino framework JP

RubyGems: rack-session-dbm

RubyGems: rspec-padrino

WP on passengerRSpec on PHP

http://udzura.jp

Enterprise Sinatra

Toggeter

http://togetter.com/li/206083

Sinatra

Sinatra

Rack::Test

Padrino framework

RSpec

Mocha

Machinist/Faker

Capybara

Sinatra::TestHelpers

RSpec::Padrino

Rack::Test

Sinatra

get /hogehoge

RackENV app.call

callRack

#last_request, #last_response

Sinatra

test/ spec/

spec_helper.rb

RSpec.configure do |conf|

Rakefile

Gemfile

Padrino

padrino rake test/spec

Sinatra

PadrinoPadrino

Padrino(0.10.5)

Testing libraries(-t)

bacon, shoulda, cucumber, testspec, riot, rspec,


minitest
default: Test::Unit

Mocking libraries(-m)

rr, mocha

@udzura

RSpec Mocha

RSpec

Machinist/Faker

In `spec/spec_helper.rb`

RSpec.configure

blueprints.rb

spec_helper.rb

User.make

Capyara

In `spec/spec_helper.rb`

_spec.rb

#visit, #current_path, #page Capybara DSL

(2)

Sinatra::TestHelpers

sinatra-contrib gem

#session, #last_env

#mock_app

Padrino

Sinatra gem

RSpec::Padrino

rspec-rails /
Padrino

0.0.1

route_to assigns

rspec-rails

https://github.com/udzura/rspec-padrino

Sinatra
Rails

Rails

Padrino

Padrino

Padrino

http://www.slideshare.net/udzura/startpadrino

SinatraPadrino

Padrino

Padrino in

2011/12/10

http://atnd.org/events/21442

Padrino

W
A
F

Padrino

__END__