Sha256: 3221f2e1c408ac2c1ff709891b7ca62d95da018bbd0dfd21583bfa0d962e4abd

Contents?: true

Size: 240 Bytes

Versions: 12

Compression:

Stored size: 240 Bytes

Contents

require 'spec_helper'

describe "Document" do
  describe User do
    it { should have_fields(:email, :login) }
  end
  
  describe Article do
    it { should have_field(:published).of_type(Boolean).with_default_value_of(false) }
  end  
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
mongoid-rspec-1.4.2 spec/unit/document_spec.rb
mongoid-rspec-1.4.1 spec/unit/document_spec.rb
mongoid-rspec-mongoid-rc-1.3.2 spec/unit/document_spec.rb
mongoid-rspec-1.3.2 spec/unit/document_spec.rb
mongoid-rspec-1.2.1 spec/unit/document_spec.rb
mongoid-rspec-1.2.0 spec/unit/document_spec.rb
mongoid-rspec-1.1.2 spec/unit/document_spec.rb
mongoid-rspec-1.1.1 spec/unit/document_spec.rb
mongoid-rspec-1.1.0 spec/unit/document_spec.rb
mongoid-rspec-1.0.4 spec/unit/document_spec.rb
mongoid_rspec_ign-1.0.3 spec/unit/document_spec.rb
mongoid-rspec-1.0.3 spec/unit/document_spec.rb