[rspec-users] [Sinatra] "tried to create Proc object without a block"
lists at ruby-forum.com
Fri Dec 3 19:55:13 EST 2010
I adapted the first lines of service_spec.rb according to Jason's code:
require File.dirname(__FILE__) + '/../service'
require 'rspec' # was 'spec' (Jason)
#require 'spec/interop/test' # no idea what this was
require 'test/unit' # gem install test-unit
set :environment, :test
Test::Unit::TestCase.send :include, Rack::Test::Methods
RSpec.configure do |conf| #from Jason
Also needed to replace
ruby service.rb -p 3000
seems to work but
telnet locahost 3000 never connects
Thank you for sharing your code.
Posted via http://www.ruby-forum.com/.
More information about the rspec-users