spec/examples/generic_adapter_examples.rb in apartment-0.19.0 vs spec/examples/generic_adapter_examples.rb in apartment-0.20.0

- old
+ new

@@ -87,9 +87,15 @@ it "should reset connection if database is nil" do subject.switch subject.current_database.should == default_database end + + it "should raise an error if database is invalid" do + expect { + subject.switch 'unknown_database' + }.to raise_error(Apartment::ApartmentError) + end end describe "#current_database" do it "should return the current db name" do subject.switch(db1) \ No newline at end of file