Permalink
Browse files

Bump version of mongomapper.

  • Loading branch information...
1 parent 1d96959 commit 0b91b8aacb98146aa5c80f897604944736a71cce @nmerouze nmerouze committed Jul 29, 2009
Showing with 6 additions and 6 deletions.
  1. +1 −1 Rakefile
  2. +2 −2 lib/remarkable_mongomapper/matchers/have_key_matcher.rb
  3. +2 −2 locales/en.yml
  4. +1 −1 spec/spec_helper.rb
View
2 Rakefile
@@ -11,7 +11,7 @@ begin
gem.authors = ["Nicolas Mérouze", "Vincent Hellot", "Mathieu Fosse"]
gem.add_dependency('remarkable', '~> 3.1.8')
- gem.add_dependency('mongomapper', '~> 0.2.0')
+ gem.add_dependency('mongomapper', '~> 0.3.1')
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
View
4 lib/remarkable_mongomapper/matchers/have_key_matcher.rb
@@ -3,7 +3,7 @@ module MongoMapper
module Matchers
class HaveKeyMatcher < Remarkable::MongoMapper::Base #:nodoc:
- arguments :collection => :keys, :as => :key
+ arguments :collection => :attributes, :as => :attribute
optional :type
@@ -18,7 +18,7 @@ class HaveKeyMatcher < Remarkable::MongoMapper::Base #:nodoc:
protected
def has_key?
- @subject.reader?(@key) && @subject.class.keys[@key] == ::MongoMapper::Key.new(@key, @type)
+ @subject.reader?(@attribute) && @subject.class.keys[@attribute] == ::MongoMapper::Key.new(@attribute, @type)
end
end
View
4 locales/en.yml
@@ -2,9 +2,9 @@ en:
remarkable:
mongo_mapper:
have_key:
- description: "have key(s) {{keys}}"
+ description: "have key(s) {{attributes}}"
expectations:
- has_key: "{{subject_name}} to have key named {{key}} with type {{type}}"
+ has_key: "{{subject_name}} to have key named {{attribute}} with type {{type}}"
validate_presence_of:
description: "require {{attributes}} to be set"
View
2 spec/spec_helper.rb
@@ -11,7 +11,7 @@ def reset_test_db!
Spec::Runner.configure do |config|
config.before(:all) { reset_test_db! }
- config.after(:all) { reset_test_db! }
+ config.after(:all) { reset_test_db! }
end
require File.join(File.dirname(__FILE__), "..", "lib", "remarkable_mongomapper")

0 comments on commit 0b91b8a

Please sign in to comment.