playround/rspec_api_blueprint — pull request #6 by xyzjace (2013-09-19 04:13:23+00:00)
Title: Non-rails project workaround

I have added a simple condition for non-rails projects which allows a property to be set on the RSpec config.

The setting gives rspec_api_blueprint the project's root directory (under the assumption that the spec_helper.rb, or indeed the RSpec config block is located one folder down from the project's root).

tl;dr
Add to your RSpec config block:

config.add_setting :current_dir, :default => File.dirname(__FILE__)+'/..'