Created
April 29, 2014 08:44
-
-
Save arturdent/11394280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Processor::Linkedin::News#run save data should == #<SocialProfile id: nil, user_id: 10, service_name: "linkedin", uid: "4mZ59ISv0H", created_at: "2014-04-29 06:55:31", updated_at: "2014-04-29 06:55:31", profileble_id: nil, profileble_type: nil, access_token: "b67fc7997979e8175cd2e3d63a66e24e14982b98", secret_key: "1de50c3c95fb952e362fbede63ab63f22ebdec48", active: false, invalid_tokens: false, expires_at: nil, obtained_archive: false> | |
Failure/Error: post.social_profile.should == @social_profile | |
expected: #<SocialProfile id: nil, user_id: 10, service_name: "linkedin", uid: "4mZ59ISv0H", created_at: "2014-04-29 06:55:31", updated_at: "2014-04-29 06:55:31", profileble_id: nil, profileble_type: nil, access_token: "b67fc7997979e8175cd2e3d63a66e24e14982b98", secret_key: "1de50c3c95fb952e362fbede63ab63f22ebdec48", active: false, invalid_tokens: false, expires_at: nil, obtained_archive: false> | |
got: #<SocialProfile id: 4, user_id: 10, service_name: "linkedin", uid: "4mZ59ISv0H", created_at: "2014-04-29 06:55:31", updated_at: "2014-04-29 06:55:31", profileble_id: nil, profileble_type: nil, access_token: "b67fc7997979e8175cd2e3d63a66e24e14982b98", secret_key: "1de50c3c95fb952e362fbede63ab63f22ebdec48", active: false, invalid_tokens: false, expires_at: nil, obtained_archive: false> (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-#<SocialProfile id: nil, user_id: 10, service_name: "linkedin", uid: "4mZ59ISv0H", created_at: "2014-04-29 06:55:31", updated_at: "2014-04-29 06:55:31", profileble_id: nil, profileble_type: nil, access_token: "b67fc7997979e8175cd2e3d63a66e24e14982b98", secret_key: "1de50c3c95fb952e362fbede63ab63f22ebdec48", active: false, invalid_tokens: false, expires_at: nil, obtained_archive: false> | |
+#<SocialProfile id: 4, user_id: 10, service_name: "linkedin", uid: "4mZ59ISv0H", created_at: "2014-04-29 06:55:31", updated_at: "2014-04-29 06:55:31", profileble_id: nil, profileble_type: nil, access_token: "b67fc7997979e8175cd2e3d63a66e24e14982b98", secret_key: "1de50c3c95fb952e362fbede63ab63f22ebdec48", active: false, invalid_tokens: false, expires_at: nil, obtained_archive: false> | |
# ./spec/processors/linkedin/news_spec.rb:39:in `block (4 levels) in <top (required)>' | |
# ./spec/processors/linkedin/news_spec.rb:28:in `block in Then' | |
2) SocialProfile methods #refresh_tokens | |
Failure/Error: When { @base.refresh_tokens('access_token', 'secret_key') && @base.reload } | |
ActiveRecord::RecordNotFound: | |
Couldn't find SocialProfile without an ID | |
# ./spec/models/social_profile_spec.rb:45:in `block (4 levels) in <top (required)>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment