Sha256: b8055d7535bef7483c0705dc2bd54368ee0fba380fbadc1fde3668c8ff50d438

Contents?: true

Size: 938 Bytes

Versions: 1

Compression:

Stored size: 938 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

module Ubiquitously
  class FacebookTest < ActiveSupport::TestCase
    context "Facebook::Account" do
      setup do
        create_user(:storage => "test/config")
      end
      
      context "login" do
        should "login successfully if valid credentials" do
          assert_equal true, @user.login(:facebook)
        end
      end
    end

    context "Facebook::Post" do
      setup do
        create_user(:storage => "test/config")

        @title = "Viatropos"
        @description = "Facebook posting ubiquitously"
        @tags = %w(ubiquitous)

        @post = Ubiquitously::Post.new(
          :url => "./test/meta.html",
          :title => @title,
          :description => @description,
          :tags => @tags,
          :user => @user
        )
      end
      
      should "create a post" do
        assert @post.save(:facebook)
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ubiquitously-0.1.0 test/test_facebook.rb