Permalink
Browse files

submoduled datajam as a runner for the engine

  • Loading branch information...
1 parent 18413d7 commit b1c4c2788e674107edc84621521701c42432fc4d @nu7hatch nu7hatch committed May 18, 2012
Showing with 19 additions and 1 deletion.
  1. +3 −0 .gitmodules
  2. +2 −0 Gemfile
  3. +1 −1 Rakefile
  4. +2 −0 config.ru
  5. +5 −0 config/environment.rb
  6. +1 −0 spec/datajam
  7. +5 −0 spec/spec_helper.rb
View
@@ -0,0 +1,3 @@
+[submodule "spec/datajam"]
+ path = spec/datajam
+ url = git://github.com/sunlightlabs/datajam.git
View
@@ -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
View
@@ -7,5 +7,5 @@ task :default => :spec
desc "Run specs"
RSpec::Core::RakeTask.new do |t|
- # ...
+ t.pattern = "./spec/*_spec.rb"
end
View
@@ -0,0 +1,2 @@
+require ::File.expand_path('../config/environment', __FILE__)
+run Datajam::Application
View
@@ -0,0 +1,5 @@
+require 'bundler'
+Bundler.setup
+
+require File.expand_path('../../spec/datajam/config/environment', __FILE__)
+require 'datajam/datacard'
Submodule datajam added at 7fccf2
View
@@ -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.