use relative_require so specs work with root Rakefile. TODO: remove

test_app, mv spec dir under gem root and use dummy app instead
This commit is contained in:
John McAliley 2012-03-11 21:47:31 -04:00
parent bfa4da97eb
commit 58467eba69
6 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
require 'spec_helper.rb' require_relative '../spec_helper.rb'
describe ArticlesController do describe ArticlesController do
fixtures :articles,:impressions,:posts,:widgets fixtures :articles,:impressions,:posts,:widgets

View File

@ -1,4 +1,4 @@
require "spec_helper.rb" require_relative "../spec_helper.rb"
# we use the posts controller as it uses the impressionsist module. any such controller would do. # we use the posts controller as it uses the impressionsist module. any such controller would do.
describe DummyController do describe DummyController do

View File

@ -1,4 +1,4 @@
require 'spec_helper' require_relative '../spec_helper'
describe Impressionist do describe Impressionist do
it "should be extended from ActiveRecord::Base" do it "should be extended from ActiveRecord::Base" do

View File

@ -1,4 +1,4 @@
require 'spec_helper' require_relative '../spec_helper'
describe Impression do describe Impression do
fixtures :widgets fixtures :widgets

View File

@ -1,4 +1,4 @@
require 'spec_helper' require_relative '../spec_helper'
describe Impression do describe Impression do
fixtures :articles,:impressions,:posts fixtures :articles,:impressions,:posts

View File

@ -1,4 +1,4 @@
require 'spec_helper' require_relative '../spec_helper'
require 'systemu' require 'systemu'
# FIXME this test might break the others if run before them # FIXME this test might break the others if run before them