Sha256: 70ad77cd6018d3a996fa5cc8bcc29e866df74d7189f616d07dba98efe030910a
Contents?: true
Size: 852 Bytes
Versions: 1
Compression:
Stored size: 852 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper.rb' module Ubiquitously class StumbleUponTest < ActiveSupport::TestCase context "StumbleUpon::User" do setup do @user = Ubiquitously::StumbleUpon::User.new end context "login" do should "raise informative error if invalid password" do @user.password = "bad password" assert_raises(Ubiquitously::AuthenticationError) do @user.login end assert_equal false, @user.logged_in? end should "login successfully if valid credentials" do assert_equal true, @user.login assert_equal true, @user.logged_in? end end end context "StumbleUpon::Post" do setup do @post = Ubiquitously::StumbleUpon::Post.new end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ubiquitously-0.0.1.6 | test/test_stumble_upon.rb |