[rspec-users] Migrating cucumber tm_bundle to rspec 2

Andrew Premdas apremdas at gmail.com
Fri Jun 3 08:39:29 EDT 2011


Hi there,

I need some help migrating some code in the cucumber textmate bundle so I
can run the specs with rspec2.

The following code lives in support/spec/spec_helper.rb and I think its
purpose is to load the fixtures.

module Spec::Example::ExampleMethods
  def project_root
    @project_root ||= File.expand_path(File.join(File.dirname(__FILE__),
'../fixtures'))
  end
end

Anyhow I can't find an rspec2 equivalent and was hoping someone might be
able to help

Best attempt so far uses module RSpec::Core::Subject::InstanceMethods but
this is pure guesswork and I'm still getting errors, although it could be
something unrelated

TIA

Andrew


-- 
------------------------
Andrew Premdas
blog.andrew.premdas.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110603/a745ed67/attachment-0001.html>


More information about the rspec-users mailing list