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

Version Path
plataforma_social-0.0.38 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.37 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.36 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.35 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.34 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.33 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.32 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.30 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.29 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.28 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.27 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.26 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.25 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.24 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.23 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.22 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.21 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.20 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.19 spec/plataforma_social/ranking/general_spec.rb
plataforma_social-0.0.18 spec/plataforma_social/ranking/general_spec.rb