Skip to content

Commit

Permalink
Bump version of mongomapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerouze committed Jul 29, 2009
1 parent 1d96959 commit 0b91b8a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -11,7 +11,7 @@ begin
gem.authors = ["Nicolas Mérouze", "Vincent Hellot", "Mathieu Fosse"] gem.authors = ["Nicolas Mérouze", "Vincent Hellot", "Mathieu Fosse"]


gem.add_dependency('remarkable', '~> 3.1.8') gem.add_dependency('remarkable', '~> 3.1.8')
gem.add_dependency('mongomapper', '~> 0.2.0') gem.add_dependency('mongomapper', '~> 0.3.1')
end end
rescue LoadError rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
Expand Down
4 changes: 2 additions & 2 deletions lib/remarkable_mongomapper/matchers/have_key_matcher.rb
Expand Up @@ -3,7 +3,7 @@ module MongoMapper
module Matchers module Matchers
class HaveKeyMatcher < Remarkable::MongoMapper::Base #:nodoc: class HaveKeyMatcher < Remarkable::MongoMapper::Base #:nodoc:


arguments :collection => :keys, :as => :key arguments :collection => :attributes, :as => :attribute


optional :type optional :type


Expand All @@ -18,7 +18,7 @@ class HaveKeyMatcher < Remarkable::MongoMapper::Base #:nodoc:
protected protected


def has_key? 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


end end
Expand Down
4 changes: 2 additions & 2 deletions locales/en.yml
Expand Up @@ -2,9 +2,9 @@ en:
remarkable: remarkable:
mongo_mapper: mongo_mapper:
have_key: have_key:
description: "have key(s) {{keys}}" description: "have key(s) {{attributes}}"
expectations: 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: validate_presence_of:
description: "require {{attributes}} to be set" description: "require {{attributes}} to be set"
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -11,7 +11,7 @@ def reset_test_db!


Spec::Runner.configure do |config| Spec::Runner.configure do |config|
config.before(:all) { reset_test_db! } config.before(:all) { reset_test_db! }
config.after(:all) { reset_test_db! } config.after(:all) { reset_test_db! }
end end


require File.join(File.dirname(__FILE__), "..", "lib", "remarkable_mongomapper") require File.join(File.dirname(__FILE__), "..", "lib", "remarkable_mongomapper")
Expand Down

0 comments on commit 0b91b8a

Please sign in to comment.