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