Sha256: 685a384e17cf19bbf0c75770bd608c8f1964e360d86bcd293616a49dc3ad9925
Contents?: true
Size: 735 Bytes
Versions: 24
Compression:
Stored size: 735 Bytes
Contents
require "spec_helper" describe PlataformaSocial::Ranking::General do describe "Platform Route" do it "return correct url" do PlataformaSocial::Ranking::General.socialp_route.should == "http://ranking.dev.plataformasocial.com.br" end end describe "GET full ranking" do before :all, :vcr do @ranking = PlataformaSocial::Ranking::General.new @ranking.create({ :user_reference => 1, :points => 3 }) @ranking.create({ :user_reference => 2, :points => 2 }) @ranking.create({ :user_reference => 3, :points => 1 }) @ranking.create({ :user_reference => 4, :points => 4 }) end it "return all ranking", :vcr do @ranking.get["users"].count.should be(4) end end end
Version data entries
24 entries across 24 versions & 1 rubygems