Skip to content

Instantly share code, notes, and snippets.

View lardawge's full-sized avatar

Larry Sprock lardawge

  • Los Angeles, CA
View GitHub Profile
@lardawge
lardawge / users_controller.rb
Created November 8, 2010 17:23
Failing spec
Failures:
1) UsersController#index returns a paginated collection
Failure/Error: assigns[:users].should be_an_instance_of(WillPaginate::Collection)
expected [#<User id: 1, name: "name-1", created_at: "2010-11-08 17:20:42", updated_at: "2010-11-08 17:20:42">, #<User id: 2, name: "name-2", created_at: "2010-11-08 17:20:42", updated_at: "2010-11-08 17:20:42">, #<User id: 3, name: "name-3", created_at: "2010-11-08 17:20:42", updated_at: "2010-11-08 17:20:42">, #<User id: 4, name: "name-4", created_at: "2010-11-08 17:20:42", updated_at: "2010-11-08 17:20:42">, #<User id: 5, name: "name-5", created_at: "2010-11-08 17:20:42", updated_at: "2010-11-08 17:20:42">] to be an instance of WillPaginate::Collection
# /Users/lar/.rvm/gems/ruby-1.9.2-p0@rspec_bug/gems/rspec-expectations-2.1.0/lib/rspec/expectations/fail_with.rb:29:in `fail_with'
# /Users/lar/.rvm/gems/ruby-1.9.2-p0@rspec_bug/gems/rspec-expectations-2.1.0/lib/rspec/expectations/handler.rb:21:in `handle_matcher'
# /Users/lar/.rvm/gems/
Rfm::Base.setup do |config| # in initializer folder
config.host 'my.host.name', 20000
config.auth 'account', 'password'
config.pem 'path/to/pem_file.pem'
config.database 'company_database'
end
Rfm::Base.host = 'my.diff_host.name' # can be overridden individually
class FmUser < Rfm::Base