Sha256: 8d3ba5423e5a201b08e24c06a60c412e55ee9e84155e992bb670ba398a48df6f
Contents?: true
Size: 873 Bytes
Versions: 2
Compression:
Stored size: 873 Bytes
Contents
#=require sharing_tags/share #=require sharing_tags/share/base #=require sharing_tags/share/vkontakte fixture.preload("vkontakte.json") describe "SharingTags.VkontakteShare", -> subject = SharingTags.VkontakteShare beforeEach -> @vk_fixture = fixture.load("vkontakte.json")[0] it "expect defined class", -> expect( SharingTags ).toBeDefined() expect( SharingTags.VkontakteShare ).toBeDefined() describe "#share", -> beforeEach -> @vk = @vk_fixture.full @share = new subject(@vk) it "expect open popup", -> spyOn(@share, "_open_popup") @share.share() expect(@share._open_popup).toHaveBeenCalled() expect(@share._open_popup).toHaveBeenCalledWith( "http://vk.com/share.php", jasmine.objectContaining(url: @vk.url, image: @vk.image, title: @vk.title, description: @vk.description) )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sharing_tags-0.0.9 | spec/javascripts/sharing_tags/share/vkontakte_share_spec.coffee |
sharing_tags-0.0.8 | spec/javascripts/sharing_tags/share/vkontakte_share_spec.coffee |