Sha256: aec16bba96432d3639fcac77e5d2338bddaa869f88a58115aa7e6034a84f253b

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

require 'spec_helper'

describe VkontakteApi::Resolvable do
  before(:each) do
    @class = Class.new do
      include VkontakteApi::Resolvable
    end
  end
  
  describe "#initialize" do
    it "should save name and resolver" do
      name     = double("Name")
      token    = double("Token")
      resolver = Hashie::Mash.new(token: token)
      
      resolvable = @class.new(name, resolver: resolver)
      resolvable.name.should  == name
      resolvable.token.should == token
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vkontakte_api-1.2 spec/vkontakte_api/resolvable_spec.rb