Sha256: f81d2a1e876468429da5caa61f7357ccff168a86fa9d9f049cfeaf8dd93cdf6e

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

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

module Ubiquitously
  class UserTest < ActiveSupport::TestCase
    
    context "User" do
      setup do
        @user = Ubiquitously::User.new(
          :username => "viatropos",
          :cookies_path => "test/cookies.yml"
        )
      end
      
      should "save cookies for user" do
        @user.login(:dzone, :newsvine)
        @user.accounts.each do |account|
          assert_equal true, account.logged_in?
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ubiquitously-0.1.0 test/test_user.rb