require 'rails/spec_helper'

describe "Mingo.collection" do
  it "should return the collection set in the rails app production config file" do
    c = Mingo.collection

    c.should be_an_instance_of Mongo::Collection
    c.name.should    == 'results'
    c.db.name.should == 'mingo_rails_test'
  end
end

describe "Mingo.collection=" do
  it "should raise an error if it's passed anything but a collection or nil" do
    proc { Mingo.collection = 'blah' }.should raise_error StandardError, /was instead given blah/
  end
end

require 'rails/spec_helper'

describe "Mingo.collection" do
  it "should return the collection set in the rails app production config file" do
    c = Mingo.collection

    c.should be_an_instance_of Mongo::Collection
    c.name.should    == 'results'
    c.db.name.should == 'mingo_rails_test'
  end
end

Remove rails test that's already covered in main suite.
Remove rails test that's already covered in main suite.
