Sha256: 20eb3329a12deda84b84e0bf986b8fa5df486543067241e4c48fe84ce076c006

Contents?: true

Size: 343 Bytes

Versions: 8

Compression:

Stored size: 343 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Mongoid::I18n do
  before do
    @class = Class.new do
      include Mongoid::I18n
    end
    I18n.stubs(:locale).returns(:en)
  end
  
  describe "criteria" do
    it "should return a LocalizedCriteria" do
      @class.criteria.should be_a(Mongoid::I18n::LocalizedCriteria)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mongoid_i18n-0.1.8 spec/unit/mongoid/i18n_spec.rb
mongoid_i18n-0.1.7 spec/unit/mongoid/i18n_spec.rb
mongoid_i18n-0.1.6 spec/unit/mongoid/i18n_spec.rb
mongoid_i18n-0.1.5 spec/unit/mongoid/i18n_spec.rb
mongoid_i18n-0.1.4 spec/unit/mongoid/i18n_spec.rb
mongoid_i18n-0.1.3 spec/unit/mongoid/i18n_spec.rb
mongoid_i18n-0.1.1 spec/unit/mongoid/i18n_spec.rb
mongoid_i18n-0.1.0 spec/unit/mongoid/i18n_spec.rb