inchworms / sinatra_tests

RSpec tests for Sinatra
5 stars 2 forks source link

params_spec: 'expect' does not work within Sinatra route handler #6

Closed carlad closed 11 years ago

carlad commented 11 years ago

we need to rewrite this test

carlad commented 11 years ago

RSpec 'expect' only works in the first level of the 'it' block. We resolved this problem by writing a Proc that included the 'expect' statement and which we could then call from within the nested block.