spec/webmock_helpers.rb in softcover-0.8.0 vs spec/webmock_helpers.rb in softcover-0.8.1

- old
+ new

@@ -61,11 +61,13 @@ description: book.description, chapters: book.chapter_attributes, prices: book.prices, faq: book.faq, testimonials: book.testimonials, - marketing_content: '' + marketing_content: '', + contact_email: book.contact_email, + hide_custom_domain_footer: book.hide_custom_domain_footer }.to_json, :headers => headers). to_return(:status => 200, :body => return_body, :headers => {}) stub_s3_post @@ -106,9 +108,10 @@ to_return(:status => 200, :body => "", :headers => {}) end def stub_screencasts_upload(book) stub_s3_post + stub_create_book(book) files = book.find_screencasts stub_request(:post, "#{api_base_url}/books/#{book.id}/screencasts"). with(:body => {files: files }.to_json, \ No newline at end of file