Ok, I've updated the code examples in Chapter 1 to use the latest gem
versions. Also, I've included a gemfile so going forward new gem
versions shouldn't break anything. You'll just be able to bundle
install to get the right ones.
Code here:
https://github.com/pauldix/service-oriented-design-with-
Next step, testing the client:
rspec spec/client_spec.rb
/home/ernsta/.rvm/gems/ruby-1.9.2-p0/gems/typhoeus-0.2.0/lib/typhoeus/multi.rb:21:
[BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
--
Posted via http://www.ruby-forum.com/.
___
Oops it connects. That was my firewall blocking 3000, sorry.
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
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 'rack/test'
require 'test/unit'
Yeah, that's a major pain...
I put my stuff up here: https://gist.github.com/720605
And later on I found:
https://github.com/pauldix/service-oriented-design-with-ruby
I tried to include comments about what I changed to get it to work.
When I found pauldix's, it looked like he had made pretty muc
I get the same error message as Jason. However installing rack-test did
not help in my case. (I am new to Ruby, and don't yet know how to use
the debugger)
Tried with rvm use 1.9.2 and rvm use 1.8.7
Generally I am a bit disappointed that the code from the book needed a
number of changes to get
I figured that problem out... Another gem needed to be installed: rack-test
Jason
On Sat, Nov 27, 2010 at 11:11 AM, jtanium wrote:
> Hello all,
>
> I'm a long time Ruby and Rails user, but new to RSpec; I've been using
> Shoulda instead.
>
> I picked up the book "Service-Oriented Design with Ru