Sha256: 5519509377191944f91e0eadbe5fe6902626322532dd4692d0ab337f63bf937f

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

require 'spec_helper'


describe 'Fetcher::Mongoid::Models::Db' do 
  context 'When I create a source' do
    
    before do
      Fetcher::Mongoid::Models::Db.new "./config/main.yml"
      @source = Source.new
    end
    
    it 'should return true when inserted on the db' do
      @source.save.should == true
    end

    after do
      @source.remove
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fetcher-mongoid-models-0.0.2 spec/models/source_spec.rb
fetcher-mongoid-models-0.0.1 spec/models/source_spec.rb