Sha256: 47bed754bf8eee2e599d90525a44f42f6b95c983a5ea4cc3f50c7da5d30ed432

Contents?: true

Size: 802 Bytes

Versions: 2

Compression:

Stored size: 802 Bytes

Contents

#=require jquery
#=require sharing_tags/share

describe "Sharing Tags", ->

  it "expect defined class", ->
    expect( SharingTags ).toBeDefined()
    expect( SharingTags.share ).toBeDefined()

  describe ".share", ->
    beforeEach ->

    describe "facebook", ->
      beforeEach ->
        spyOn(SharingTags.Share, "facebook")
        spyOn(SharingTags.MobileShare, "facebook")

      it "expect mobile version", ->
        SharingTags.share('facebook', mobile: true, url: "url")
        expect(SharingTags.MobileShare.facebook).toHaveBeenCalled()

      it "expect desktop version", ->
        SharingTags.share('facebook')
        expect(SharingTags.Share.facebook).toHaveBeenCalled()

    it "vkontakte"
    it "twitter"
    it "google"
    it "odnoklassniki"
    it "mailru"
    it "linkedin"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sharing_tags-0.0.5 spec/javascripts/sharing_tags/sharing_tags_spec.coffee
sharing_tags-0.0.4 spec/javascripts/sharing_tags/sharing_tags_spec.coffee