diaspora/spec
Vinothan Shankar 2ace9b47b1 * app/models/services/tumblr.rb (Services::Tumblr#post): Post only to primary blog
Hardly a total fix, but it's a start.  Based on meitar/diaspora:b5c01598.

* app/models/services/tumblr.rb: style: double-quote string

Line 22.  Change from single-quotes.

* app/models/services/tumblr.rb: parse URL only for blogs we care about

...which in this case is just the primary.

This also fixes the failed test in 7079fda (and by extension, 7a1d3a9).

* spec/models/services/tumblr_spec.rb: Add "primary" flag to test user-info

* spec/models/services/tumblr_spec.rb: Add a secondary blog to test user-info

This should not cause a request to be issued, so we can continue to
expect the request for the primary blog only.  Any request for the
secondary indicates a bug in the service implementation.

* spec/models/services/tumblr_spec.rb: Make the second blog returned the primary

Just to catch if it's picking the first one

* app/models/services/tumblr.rb: use blogs.find instead of blogs.each

Since we're only handling the primary blog, this should be easy enough

* app/models/services/tumblr.rb: Remove redundant if block

The condition it would have caught is dealt with by the ifnone on the find

* app/models/services/tumblr.rb: Style: remove space between { and |
2015-09-07 12:45:16 +02:00
..
controllers add moderators to report email recievers 2015-09-07 12:31:25 +02:00
fixtures remove old webfinger/hcard code 2015-08-21 14:23:08 +02:00
helpers Check if person is nil in person_image_tag 2015-08-06 22:55:41 +02:00
integration use discovery from diaspora_federation gem 2015-08-21 14:21:43 +02:00
javascripts Fix back-to-top backbone view 2015-08-29 21:44:24 +02:00
lib remove old webfinger/hcard code 2015-08-21 14:23:08 +02:00
mailers add moderators to report email recievers 2015-09-07 12:31:25 +02:00
models * app/models/services/tumblr.rb (Services::Tumblr#post): Post only to primary blog 2015-09-07 12:45:16 +02:00
presenters Refactor post presenter 2015-08-23 22:49:12 +02:00
serializers added post guid to the post_serializer 2015-07-11 00:17:01 +02:00
services Refactor PostService and extract its tests 2015-07-26 13:10:24 +02:00
shared_behaviors Strip Unicode format characters prior post processing 2015-02-17 23:29:05 +01:00
support fix minor errors in spec helper scripts, remove db/seeeds.rb 2015-04-28 01:02:27 +02:00
workers use discovery from diaspora_federation gem 2015-08-21 14:21:43 +02:00
configuration_methods_spec.rb Set captcha length correctly, fix #5932 2015-05-06 23:51:28 +02:00
factories.rb add save callback for webfinger 2015-08-21 14:21:43 +02:00
federation_callbacks_spec.rb add save callback for webfinger 2015-08-21 14:21:43 +02:00
helper_methods.rb remove old webfinger/hcard code 2015-08-21 14:23:08 +02:00
locale_spec.rb On reshare insert the reshare built from the response 2015-03-23 23:02:23 +01:00
misc_spec.rb Two tests failing after rspec 2.99 => 3.0.0 2014-08-26 17:10:26 -07:00
spec-doc.rb
spec_helper.rb bump rspec-rails 2015-03-25 02:33:56 +01:00