Skip to content

Instantly share code, notes, and snippets.

@jeffreywalter
jeffreywalter / gist:2294564
Created April 3, 2012 18:42
error response
HTTP/1.1 400 Bad Request
Content-Length: 0
<?xml version="1.0" encoding="UTF-8"?>
<ErrorResponse>
<Error code="1000">illegal title_long format</Error>
<Error code="1000">illegal genre format</Error>
</ErrorResponse>
@jeffreywalter
jeffreywalter / gist:3136259
Created July 18, 2012 13:37 — forked from MattStopa/gist:3136121
Gist Description
We couldn’t find that file to show.
@jeffreywalter
jeffreywalter / gist:3289006
Created August 7, 2012 20:23
failing specs
rspec /private/tmp/monaco/spec/models/offer_spec.rb:19 # Offer before save callbacks copies in the title attributes for caching
rspec /private/tmp/monaco/spec/models/offer_spec.rb:346 # Offer#terms with cached terms should have the appropriate number of cached_term_limitations_attributes
rspec /private/tmp/monaco/spec/models/offer_spec.rb:1331 # Offer#promotional_content_group_title_attributes with no promotional group
rspec /private/tmp/monaco/spec/requests/operator_views_monitoring_map_spec.rb:88 # Operator views monitoring map map updates in real time adds a marker when a new headend is added
rspec /private/tmp/monaco/spec/controllers/utf8/assets_controller_spec.rb:30 # Service::AssetsController POST create UTF-8 data ADI3 sets a field on Title
rspec /private/tmp/monaco/spec/controllers/utf8/assets_controller_spec.rb:34 # Service::AssetsController POST create UTF-8 data ADI3 sets a rating on Title
rspec /private/tmp/monaco/spec/controllers/utf8/assets_controller_spec.rb:38 # Service::AssetsController POST
rspec /private/tmp/monaco/spec/lib/mappers/adi3_mapper_spec.rb:2113 # ADI3Mapper updating assets should load all assets from the database
rspec /private/tmp/monaco/spec/lib/mappers/adi3_mapper_spec.rb:2120 # ADI3Mapper updating assets term_limitation should change the updated fields
rspec /private/tmp/monaco/spec/lib/mappers/adi3_mapper_spec.rb:2128 # ADI3Mapper updating assets term_limitation distributor_royalty_info should change only the updated fields
rspec /private/tmp/monaco/spec/lib/mappers/adi3_mapper_spec.rb:2133 # ADI3Mapper updating assets term_limitation distributor_royalty_info should keep the previous values
rspec /private/tmp/monaco/spec/lib/mappers/adi3_mapper_spec.rb:2141 # ADI3Mapper updating assets term_limitation studio_royalty_info should change only the updated fields
rspec /private/tmp/monaco/spec/lib/mappers/adi3_mapper_spec.rb:2146 # ADI3Mapper updating assets term_limitation studio_royalty_info should keep the previous values
rspec /private/tmp/monaco/spec/lib/mappers/adi3_mapper_spe
*** LOCAL GEMS ***
aaronh-chronic (0.3.9)
abstract (1.0.0)
actionmailer (3.0.9)
actionpack (3.0.9)
active_reload (0.3.0)
activemodel (3.0.9)
activerecord (3.0.9)
activeresource (3.0.9)
rspec /private/tmp/monaco/spec/models/offer_spec.rb:302 # Offer#svod_term_limitations when svod term limitations count
rspec /private/tmp/monaco/spec/models/offer_query_spec.rb:28 # OfferQuery#results search by provider it should behave like finds_the_rio should find one offer
rspec /private/tmp/monaco/spec/models/offer_query_spec.rb:32 # OfferQuery#results search by provider it should behave like finds_the_rio should find Rio
rspec /private/tmp/monaco/spec/models/offer_query_spec.rb:57 # OfferQuery#results search by price
rspec /private/tmp/monaco/spec/models/offer_query_spec.rb:28 # OfferQuery#results search by category by exact match it should behave like finds_the_rio should find one offer
rspec /private/tmp/monaco/spec/models/offer_query_spec.rb:32 # OfferQuery#results search by category by exact match it should behave like finds_the_rio should find Rio
rspec /private/tmp/monaco/spec/models/offer_query_spec.rb:28 # OfferQuery#results search by category by partial match it should behave like finds_the_r
rspec /private/tmp/monaco/spec/models/catalog_spec.rb:35 # Catalog.stage! when not already staged should clone the catalog
rspec /private/tmp/monaco/spec/models/catalog_spec.rb:47 # Catalog.stage! when not already staged stages the catalog's offers
rspec /private/tmp/monaco/spec/models/catalog_spec.rb:73 # Catalog.unstage! empties any references to stage categories
rspec /private/tmp/monaco/spec/models/offer_spec.rb:347 # Offer#cache_term_limitations adding additional term limitations should add additional term offering_id to offer
rspec /private/tmp/monaco/spec/models/offer_spec.rb:611 # Offer#display_behavior_for when svod only with user and user's subscriber is not part of subscription display behavior is grey
rspec /private/tmp/monaco/spec/models/offer_spec.rb:1051 # Offer#svod_term_limitation product
rspec /private/tmp/monaco/spec/models/offer_spec.rb:1366 # Offer#display_status expired offer should be expired
rspec /private/tmp/monaco/spec/models/category_spec.rb:221 # Category#has_offerings? returns t
rspec /private/tmp/monaco/spec/models/adi_spec.rb:56 # Adi 3.0#import creates a record for each element
rspec /private/tmp/monaco/spec/models/adi_spec.rb:72 # Adi 3.0#import with only one category creates an offer
rspec /private/tmp/monaco/spec/models/adi_spec.rb:80 # Adi 3.0#import with only one ext attribute embeds one ext in the movie asset
rspec /private/tmp/monaco/spec/models/adi_spec.rb:96 # Adi 3.0#import with a distributor royalty info embeds one distributor royalty info
rspec /private/tmp/monaco/spec/models/adi_spec.rb:104 # Adi 3.0#import with a studio royalty info embeds one studio royalty info
rspec /private/tmp/monaco/spec/models/adi_spec.rb:120 # Adi 3.0#import with an existing offer creation rule creates an additional term with the proper attributes
rspec /private/tmp/monaco/spec/models/adi_spec.rb:125 # Adi 3.0#import with an existing offer creation rule sets the suggested price by applying the pricing rule from the term template
rspec /private/tmp/monaco/spec/models/adi_spec.rb:129 # Adi 3.0#
@jeffreywalter
jeffreywalter / gist:3777104
Created September 24, 2012 17:17
e_COD_add_bundle_ui_4
Failures:
1) Offer#presentable? with no term limitation should not be presentable
Failure/Error: subject { offer.presentable? }
NoMethodError:
undefined method `in_time_zone' for nil:NilClass
# /private/tmp/monaco/app/models/term_limitation.rb:70:in `valid_for_offer'
# /private/tmp/monaco/lib/term_limitable_offer.rb:28:in `valid_terms'
# /private/tmp/monaco/lib/term_limitable_offer.rb:24:in `terms_or_cached_terms'
# /private/tmp/monaco/lib/term_limitable_offer.rb:20:in `terms'
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist