Sha256: 183bc89b25c3e54b55947b2b024ef30fd9f1797d82edde8c9763b68b6036afd7
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
require File.dirname(__FILE__) + '/test_helper.rb' require 'restclient' module Ubiquitously class FavesTest < ActiveSupport::TestCase context "Faves::User" do setup do @user = Ubiquitously::Faves::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 end should "login successfully if valid credentials" do assert_equal true, @user.login end end end =begin context "Faves::Post" do setup do @post = Ubiquitously::Faves::Post.new( :debug => true, :title => "A Title", :description => "A Description", :tags => ["usability", "ruby", "web services", "open source"], :url => "http://example.com/abcdef", :user => Ubiquitously::Faves::User.new ) end should "create a post" do assert @post.save end end =end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ubiquitously-0.0.1.6 | test/test_faves.rb |