Skip to content

Instantly share code, notes, and snippets.

@georgecheng
georgecheng / Rspec output
Created October 15, 2012 19:15
subscriptions.zip
Mocha deprecation warning: Test::Unit or MiniTest must be loaded *before* Mocha.
Mocha deprecation warning: If you're integrating with another test library, you should probably require 'mocha_standalone' instead of 'mocha'
[DEVISE] Devise.apply_schema is deprecated and has no effect. Please remove it.
[DEVISE] Devise.use_salt_as_remember_token is deprecated and has no effect. Please remove it.
/Users/georgecheng/Downloads/subscriptions/spec/controllers/saas_admin/accounts_controller_spec.rb:3: warning: toplevel constant AccountsController referenced by SaasAdmin::AccountsController
........................../Users/georgecheng/Downloads/subscriptions/spec/controllers/saas_admin/accounts_controller_spec.rb:7: warning: toplevel constant AccountsController referenced by SaasAdmin::AccountsController
@georgecheng
georgecheng / Rspec output
Created October 15, 2012 18:20
SaasKit test errors
1) Subscription when storing the credit card unsuccessfully should return an error message for a failed capture
Failure/Error: @sub.store_card(@card).should be_false
Mocha::ExpectationError:
unexpected invocation: #<ActiveMerchant::Billing::BogusGateway:0x7fd95ed9bea0>.purchase(1000, 'foo')
unsatisfied expectations:
- expected exactly once, not yet invoked: #<ActiveMerchant::Billing::BogusGateway:0x7fd95ed9bea0>.purchase(1000, '123')
satisfied expectations:
- expected never, not yet invoked: #<Subscription:0x7fd95eba6550>.save(any_parameters)
- expected never, not yet invoked: #<Subscription:0x7fd95eba6550>.state=(any_parameters)
- expected never, not yet invoked: #<Subscription:0x7fd95eba6550>.next_renewal_at=(any_parameters)
@georgecheng
georgecheng / brew --config
Created June 28, 2012 08:13
brew install postgresql - Failed executing: ./configure
$ brew --config
HOMEBREW_VERSION: 0.9.1
HEAD: 20cdf74e0876b9f44e66f5b6be7331817ef84d8c
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.7.4-x86_64
Xcode: 4.3.3
CLT: 1.0.0.9000000000.1.1249367152
GCC-4.0: N/A