Skip to content

Commit

Permalink
submoduled datajam as a runner for the engine
Browse files Browse the repository at this point in the history
  • Loading branch information
nu7hatch committed May 18, 2012
1 parent 18413d7 commit b1c4c27
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "spec/datajam"]
path = spec/datajam
url = git://github.com/sunlightlabs/datajam.git
2 changes: 2 additions & 0 deletions Gemfile
Expand Up @@ -2,6 +2,8 @@
source 'https://rubygems.org'
gemspec

eval File.read(File.expand_path('../spec/datajam/Gemfile-deps', __FILE__)), binding

group :development do
gem 'fuubar'
end
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -7,5 +7,5 @@ task :default => :spec

desc "Run specs"
RSpec::Core::RakeTask.new do |t|
# ...
t.pattern = "./spec/*_spec.rb"
end
2 changes: 2 additions & 0 deletions config.ru
@@ -0,0 +1,2 @@
require ::File.expand_path('../config/environment', __FILE__)
run Datajam::Application
5 changes: 5 additions & 0 deletions config/environment.rb
@@ -0,0 +1,5 @@
require 'bundler'
Bundler.setup

require File.expand_path('../../spec/datajam/config/environment', __FILE__)
require 'datajam/datacard'
1 change: 1 addition & 0 deletions spec/datajam
Submodule datajam added at 7fccf2
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
@@ -1,7 +1,12 @@
require File.expand_path('../../config/environment', __FILE__)
require 'rspec'
require 'mocha'
require 'datajam/datacard'

RSpec.configure do |conf|
conf.mock_with :mocha

conf.before(:suite) do
load File.expand_path('../datajam/db/seeds.rb', __FILE__)
end
end

0 comments on commit b1c4c27

Please sign in to comment.