Skip to content

Instantly share code, notes, and snippets.

@mulderp mulderp/gist:7115197
Created Oct 23, 2013

Embed
What would you like to do?
1) SignupPresenter#save saves records when there are valid
Failure/Error: User.count.should be 1
expected #<Fixnum:3> => 1
got #<Fixnum:5> => 2
Compared using equal?, which compares object identity,
but expected and actual are not the same object. Use
`expect(actual).to eq(expected)` if you don't care about
object identity in this example.
# ./spec/models/signup_presenter_spec.rb:100:in `block (3 levels) in <top (required)>'
2) Corporate::DebtClaimPosting internal account transfer should execute and create an account transfer without generating MTANs
Failure/Error: @emails.size.should be == 1
expected: == 1
got: 2
# ./spec/models/corporate/debt_claim_posting_spec.rb:70:in `block (3 levels) in <top (required)>'
3) Backoffice::V1::UsersController GET 'index' returns all users
Failure/Error: assigns(:users).should == [@user]
expected: [#<User id: 672, email: "person669@example.com", encrypted_password: "3b6588e903d3258af62d9c2f72c66582f3c1bccb", password_salt: "KVj2Spx5BWGEacskmvtk", created_at: "2013-10-23 09:06:48", updated_at: "2013-10-23 09:06:48", confirmation_token: nil, confirmed_at: "2013-10-23 09:06:48", deleted_at: nil, invited_by_id: nil, is_admin: false, friend_count: 0, friend_of_friend_count: 0, photo_file_name: nil, photo_content_type: nil, photo_file_size: nil, photo_updated_at: nil, ip_address: nil, gemege_user_id: 669, msisdn: "0170/1234669", msisdn_activated_at: nil, mobile_activation_code: nil, transaction_pin_encrypted: nil, failed_pin_count: 0, last_failed_pin: nil, startnext_userid: nil, initial_password_reset_required: false, invitation_id: nil, confirmation_sent_at: "2013-10-23 09:06:48", reset_password_token: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, failed_attempts: 0, unlock_token: nil, locked_at: nil, reset_password_sent_at: nil>]
got: [#<User id: 672, email: "person669@example.com", encrypted_password: "3b6588e903d3258af62d9c2f72c66582f3c1bccb", password_salt: "KVj2Spx5BWGEacskmvtk", created_at: "2013-10-23 09:06:48", updated_at: "2013-10-23 09:06:48", confirmation_token: nil, confirmed_at: "2013-10-23 09:06:48", deleted_at: nil, invited_by_id: nil, is_admin: false, friend_count: 0, friend_of_friend_count: 0, photo_file_name: nil, photo_content_type: nil, photo_file_size: nil, photo_updated_at: nil, ip_address: nil, gemege_user_id: 669, msisdn: "0170/1234669", msisdn_activated_at: nil, mobile_activation_code: nil, transaction_pin_encrypted: nil, failed_pin_count: 0, last_failed_pin: nil, startnext_userid: nil, initial_password_reset_required: false, invitation_id: nil, confirmation_sent_at: "2013-10-23 09:06:48", reset_password_token: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, failed_attempts: 0, unlock_token: nil, locked_at: nil, reset_password_sent_at: nil>, #<User id: 8, email: "person1@example.com", encrypted_password: "46f46f8632b87e17852b4b6946dbd6638e4c83f0", password_salt: "kp2xjxzKnqoY33EHdZ8B", created_at: "2013-10-23 09:05:51", updated_at: "2013-10-23 09:05:52", confirmation_token: nil, confirmed_at: "2013-10-23 09:05:52", deleted_at: nil, invited_by_id: nil, is_admin: false, friend_count: 0, friend_of_friend_count: 0, photo_file_name: nil, photo_content_type: nil, photo_file_size: nil, photo_updated_at: nil, ip_address: nil, gemege_user_id: 1, msisdn: "4917012341", msisdn_activated_at: nil, mobile_activation_code: nil, transaction_pin_encrypted: nil, failed_pin_count: 0, last_failed_pin: nil, startnext_userid: nil, initial_password_reset_required: false, invitation_id: nil, confirmation_sent_at: "2013-10-23 09:05:51", reset_password_token: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, failed_attempts: 0, unlock_token: nil, locked_at: nil, reset_password_sent_at: nil>] (using ==)
Diff:
@@ -1,2 +1,2 @@
-[#<User id: 672, email: "person669@example.com", encrypted_password: "3b6588e903d3258af62d9c2f72c66582f3c1bccb", password_salt: "KVj2Spx5BWGEacskmvtk", created_at: "2013-10-23 09:06:48", updated_at: "2013-10-23 09:06:48", confirmation_token: nil, confirmed_at: "2013-10-23 09:06:48", deleted_at: nil, invited_by_id: nil, is_admin: false, friend_count: 0, friend_of_friend_count: 0, photo_file_name: nil, photo_content_type: nil, photo_file_size: nil, photo_updated_at: nil, ip_address: nil, gemege_user_id: 669, msisdn: "0170/1234669", msisdn_activated_at: nil, mobile_activation_code: nil, transaction_pin_encrypted: nil, failed_pin_count: 0, last_failed_pin: nil, startnext_userid: nil, initial_password_reset_required: false, invitation_id: nil, confirmation_sent_at: "2013-10-23 09:06:48", reset_password_token: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, failed_attempts: 0, unlock_token: nil, locked_at: nil, reset_password_sent_at: nil>]
+[#<User id: 672, email: "person669@example.com", encrypted_password: "3b6588e903d3258af62d9c2f72c66582f3c1bccb", password_salt: "KVj2Spx5BWGEacskmvtk", created_at: "2013-10-23 09:06:48", updated_at: "2013-10-23 09:06:48", confirmation_token: nil, confirmed_at: "2013-10-23 09:06:48", deleted_at: nil, invited_by_id: nil, is_admin: false, friend_count: 0, friend_of_friend_count: 0, photo_file_name: nil, photo_content_type: nil, photo_file_size: nil, photo_updated_at: nil, ip_address: nil, gemege_user_id: 669, msisdn: "0170/1234669", msisdn_activated_at: nil, mobile_activation_code: nil, transaction_pin_encrypted: nil, failed_pin_count: 0, last_failed_pin: nil, startnext_userid: nil, initial_password_reset_required: false, invitation_id: nil, confirmation_sent_at: "2013-10-23 09:06:48", reset_password_token: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, failed_attempts: 0, unlock_token: nil, locked_at: nil, reset_password_sent_at: nil>, #<User id: 8, email: "person1@example.com", encrypted_password: "46f46f8632b87e17852b4b6946dbd6638e4c83f0", password_salt: "kp2xjxzKnqoY33EHdZ8B", created_at: "2013-10-23 09:05:51", updated_at: "2013-10-23 09:05:52", confirmation_token: nil, confirmed_at: "2013-10-23 09:05:52", deleted_at: nil, invited_by_id: nil, is_admin: false, friend_count: 0, friend_of_friend_count: 0, photo_file_name: nil, photo_content_type: nil, photo_file_size: nil, photo_updated_at: nil, ip_address: nil, gemege_user_id: 1, msisdn: "4917012341", msisdn_activated_at: nil, mobile_activation_code: nil, transaction_pin_encrypted: nil, failed_pin_count: 0, last_failed_pin: nil, startnext_userid: nil, initial_password_reset_required: false, invitation_id: nil, confirmation_sent_at: "2013-10-23 09:05:51", reset_password_token: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, failed_attempts: 0, unlock_token: nil, locked_at: nil, reset_password_sent_at: nil>]
# ./spec/controllers/backoffice/v1/users_controller_spec.rb:18:in `block (3 levels) in <top (required)>'
4) Fidorpay::BankTransfersController GET 'show' shows bank transfer
Failure/Error: get :show, :id => bank_transfer.id, :format => "pdf"
RuntimeError:
Failed to execute:
"/usr/local/bin/wkhtmltopdf" -q --margin-top 10 --margin-bottom 10 --margin-left 15 --margin-right 10 --print-media-type - -
Error: PDF could not be generated!
# ./app/controllers/fidorpay/bank_transfers_controller.rb:88:in `block (2 levels) in show'
# ./app/controllers/fidorpay/bank_transfers_controller.rb:85:in `show'
# ./spec/controllers/fidorpay/bank_transfers_controller_spec.rb:31:in `block (3 leve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.