Sha256: 4c2091283ab1556d788d1e1f637e06958d5b7db4523fe81cb42a9b13033c2170

Contents?: true

Size: 337 Bytes

Versions: 7

Compression:

Stored size: 337 Bytes

Contents

require "spec_helper"

RSpec.describe Ribose::Leaderboard do
  describe ".all" do
    it "retrieves the current leader board" do
      stub_ribose_leaderboard_api
      leaderboard = Ribose::Leaderboard.all

      expect(leaderboard.first.name).to eq("John Doe")
      expect(leaderboard.first.login).to eq("john.doe")
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ribose-0.5.0 spec/ribose/leaderboard_spec.rb
ribose-0.4.1 spec/ribose/leaderboard_spec.rb
ribose-0.4.0 spec/ribose/leaderboard_spec.rb
ribose-0.3.2 spec/ribose/leaderboard_spec.rb
ribose-0.3.1 spec/ribose/leaderboard_spec.rb
ribose-0.3.0 spec/ribose/leaderboard_spec.rb
ribose-0.2.0 spec/ribose/leaderboard_spec.rb