spec/wackamole/models/user_spec.rb in wackamole-0.0.9 vs spec/wackamole/models/user_spec.rb in wackamole-0.1.2

- old
+ new

@@ -1,12 +1,11 @@ require File.join(File.dirname(__FILE__), %w[.. .. spec_helper]) require 'chronic' describe Wackamole::User do before( :all ) do - Wackamole::Control.init_config( File.join(File.dirname(__FILE__), %w[.. .. config test.yml]), 'test' ) - Wackamole::Control.connection.should_not be_nil - Wackamole::Control.db( "mole_app1_test_mdb" ) + Wackamole::Control.init_config( File.join(File.dirname(__FILE__), %w[.. .. config test.yml]) ) + Wackamole::Control.current_db( "test", "app1", "test", true ) end it "should paginate a user collection correctly" do cltn = Wackamole::User.paginate_tops( {}, 1, 2 ) cltn.total_entries.should == 2