Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add spec task.

  • Loading branch information...
commit 0a706f968da40a7ebbd2acc66fccd9e11bd500df 1 parent 401449e
@nmerouze nmerouze authored
View
10 Rakefile
@@ -1,5 +1,6 @@
require 'rubygems'
require 'rake'
+require 'spec/rake/spectask'
begin
require 'jeweler'
@@ -15,4 +16,13 @@ begin
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+end
+
+desc 'Default: run specs.'
+task :default => :spec
+
+desc 'Run all the specs for the machinist plugin.'
+Spec::Rake::SpecTask.new do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.rcov = false
end
View
2  VERSION
@@ -1 +1 @@
-0.1.0
+0.1.0
View
2  lib/remarkable_mongomapper/base.rb
@@ -104,7 +104,6 @@ def assert_good_value(model, attribute, value, error_message_to_avoid=//) # :nod
return true if model.valid?
- # FIXME
error_message_to_avoid = error_message_from_model(model, attribute, error_message_to_avoid)
assert_does_not_contain(model.errors.on(attribute), error_message_to_avoid)
end
@@ -131,7 +130,6 @@ def assert_bad_value(model, attribute, value, error_message_to_expect=:invalid)
return false if model.valid? || model.errors.on(attribute).blank?
- # FIXME
error_message_to_expect = error_message_from_model(model, attribute, error_message_to_expect)
assert_contains(model.errors.on(attribute), error_message_to_expect)
end
View
2  spec/spec_helper.rb
@@ -1,6 +1,6 @@
require "rubygems"
-gem "mongomapper", "~> 0.2.0"
+gem "mongomapper", "~> 0.3.1"
require "mongomapper"
MongoMapper.database = "remarkable_mongomapper"
Please sign in to comment.
Something went wrong with that request. Please try again.