Sha256: c288ad8288e65a08550898f423ed2f7723efa6f7e159bb6577c12a09728115b8
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
require File.dirname(__FILE__) + "/../spec_helper" describe Deadlinez::Api do describe "#stats" do it "should return correct stats" do FakeWeb.register_uri(:post, "http://service.afterthedeadline.com/stats", :response => fixture_for('stats.response')) data = %Q{Jacobs spent most of his childhood moving around the East Coast with his family, eventually settling in Tampa, Florida. As a drummer he won the 1978 "Most Talented" trophy at Greco Junior High School, but after relocating to Queens, New York (as a result of his parents' divorce), he traded his drums in for a set of turntables apon discovering and marveling over hip hop while the artform was still in an underground developmental stage. He was mentored in the craft by his cousin Rene Negron (a.k.a. DJ-Stretch), and their close friend Shawn Trone (a.k.a. MC Shah-T of the parody-rap group No Face) who suggested Greg use the name "Shah-G". Jacobs liked the idea, but mistakenly thought his friend said "Shock-G", and began using that name instead.} result = Deadlinez::Api.stats(data) result.should have(4).things end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
deadlinez-0.1.2 | spec/deadlinez/api_spec.rb |
deadlinez-0.1.1 | spec/deadlinez/api_spec.rb |
deadlinez-0.1.0 | spec/deadlinez/api_spec.rb |