Sha256: ff282a44df9f70d8f1c17365020803dec78d454fc62f5868bd3a4c9cd4c00788
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
require 'spec_helper' describe Mongoid::Compatibility::Version do context 'mongoid? methods' do it 'only true for one version' do expect( (Mongoid::Compatibility::Version.methods - Object.methods).one? do |m| Mongoid::Compatibility::Version.send(m) end ).to be true end it 'defines version methods' do expect(Mongoid::Compatibility::Version.methods - Object.methods).to_not eq [] end (2..5).each do |v| context "mongoid #{v}" do it "responds to mongoid#{v}?" do expect(Mongoid::Compatibility::Version).to respond_to("mongoid#{v}?") end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems