Sha256: c45deb16c7775cd67e1ed771dc6c71b1cf44591ba04a9706e01a2a30339ee403

Contents?: true

Size: 383 Bytes

Versions: 3

Compression:

Stored size: 383 Bytes

Contents

require 'spec_helper'

describe Mongoid::Report do
  it 'should creates settings in case of missing block' do
    report_klass = Class.new do
      include Mongoid::Report

      report 'example' do
        attach_to Model do ; end
      end
    end

    expect(report_klass.settings['example']).to be
    expect(report_klass.settings['example'][:reports]['models']).to be
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-report-0.2.2 spec/mongoid/report/attach_to_spec.rb
mongoid-report-0.2.1 spec/mongoid/report/attach_to_spec.rb
mongoid-report-0.2.0 spec/mongoid/report/attach_to_spec.rb