Permalink
Browse files

added test rake task

  • Loading branch information...
1 parent 4c51f91 commit 7d7007e045b658fd54404ff1bbfd9d791212dd84 Nico committed May 25, 2012
Showing with 6 additions and 1 deletion.
  1. +5 −0 Rakefile
  2. +1 −1 spec/spec_helper.rb
View
@@ -1,2 +1,7 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
+
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec)
+task default: :spec
View
@@ -6,7 +6,7 @@
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
ENV["RAILS_ENV"] = 'test'
-require File.expand_path("../test_nested_form_fields/config/environment", __FILE__)
+require_relative "test_nested_form_fields/config/environment"
require 'rspec/rails'
require 'assert_difference'

0 comments on commit 7d7007e

Please sign in to comment.