Permalink
Browse files

Fixed issues with requires; fixes gh-2

  • Loading branch information...
jferris committed Mar 31, 2010
1 parent 0b5da4d commit 0aaf7d27cff4502662a8a3d43d2d8ab0cbcceeef
Showing with 9 additions and 3 deletions.
  1. +7 −0 Rakefile
  2. +2 −0 lib/effigy/view.rb
  3. +0 −3 spec/effigy/view_spec.rb
View
@@ -31,6 +31,13 @@ begin
end
task :spec => :rails_root
desc "Run all specs individually to ensure that requires are correct"
task :check_requires do
Dir["spec/**/*_spec.rb"].each do |spec_file|
system("spec -cfp #{spec_file}") or raise "Failed while running #{spec_file}"
end
end
rescue LoadError => exception
puts "Missing dependencies for specs"
task :spec do
View
@@ -2,6 +2,8 @@
require 'effigy/class_list'
require 'effigy/errors'
require 'effigy/selection'
require 'effigy/core_ext/hash'
require 'effigy/core_ext/object'
module Effigy
# Accepts a template to be transformed.
View
@@ -1,8 +1,5 @@
require 'spec_helper'
require 'effigy/view'
require 'effigy/errors'
require 'effigy/core_ext/hash'
require 'effigy/core_ext/object'
module Effigy
describe View do

0 comments on commit 0aaf7d2

Please sign in to comment.