Sha256: 50bd254182c3a420573725a483c1c73e659d3a9d8aadb08c8e67a918b72cce42
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
Given /^a new connection to the database "([^"]*)" with user "([^"]*)" and password "([^"]*)"$/ do |db, user, password| begin MongoDoc::Connection.connection = Mongo::Connection.from_uri("mongodb://#{user}:#{password}@localhost/#{db}") MongoDoc::Connection.send(:verify_server_version) rescue StandardError => e @exception = e end end Then /^a "([^"]*)" exception is thrown$/ do |exception| @exception.class.name.should == exception end
Version data entries
3 entries across 3 versions & 1 rubygems