Sha256: 43f4e3b40d1cf1c71aca34eb41ff0741654bbec9ef593d2de0203503e89a69f4

Contents?: true

Size: 504 Bytes

Versions: 9

Compression:

Stored size: 504 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     = stub("Name")
      token    = stub("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

9 entries across 9 versions & 1 rubygems

Version Path
vkontakte_api-1.1 spec/vkontakte_api/resolvable_spec.rb
vkontakte_api-1.0.4 spec/vkontakte_api/resolvable_spec.rb
vkontakte_api-1.0.3 spec/vkontakte_api/resolvable_spec.rb
vkontakte_api-1.0.2 spec/vkontakte_api/resolvable_spec.rb
vkontakte_api-1.0.1 spec/vkontakte_api/resolvable_spec.rb
vkontakte_api-1.0 spec/vkontakte_api/resolvable_spec.rb
vkontakte_api-1.0.rc3 spec/vkontakte_api/resolvable_spec.rb
vkontakte_api-1.0.rc2 spec/vkontakte_api/resolvable_spec.rb
vkontakte_api-1.0.rc spec/vkontakte_api/resolvable_spec.rb