Sha256: 2f0cee70ef5cdff421dccdaf62a425fa625896c0c0cf7ec94ccfe411c1b3fbaa

Contents?: true

Size: 452 Bytes

Versions: 6

Compression:

Stored size: 452 Bytes

Contents

require 'spec_helper'

describe Bnet::Diablo3::Skill do

  describe ".from_api" do
    subject { described_class.from_api(api_args) }

    context "given the right parameters" do
      let(:api_args) do
        { "skill" => {
          "name" => "Magic Missile",
        },
        "rune" => {
          "name" => "Seeker",
        }
        }
      end

      it "can be initialized" do
        is_expected.to_not be_nil
      end

    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bnet-0.0.10 spec/bnet/diablo3/skill_spec.rb
bnet-0.0.5 spec/bnet/diablo3/skill_spec.rb
bnet-0.0.4 spec/bnet/diablo3/skill_spec.rb
bnet-0.0.3 spec/bnet/diablo3/skill_spec.rb
bnet-0.0.2 spec/bnet/diablo3/skill_spec.rb
bnet-0.0.1 spec/bnet/diablo3/skill_spec.rb