Sha256: 3c2103c3d9c9cc1c5ca5352da240a2c15ea6c7f825ed6e37435a61655f1f18d7
Contents?: true
Size: 932 Bytes
Versions: 1
Compression:
Stored size: 932 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper.rb' module Ubiquitously class FavesTest < ActiveSupport::TestCase context "Faves::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(:faves) end end end context "Faves::Post" do setup do create_user(:storage => "test/config") @title = "Viatropos" @description = "Mechanically logging in" @tags = %w(ubiquitous) @post = Ubiquitously::Post.new( :url => "http://twitter.com/", :title => @title, :description => @description, :tags => @tags, :user => @user ) end should "create a post" do assert @post.save(:faves) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ubiquitously-0.1.0 | test/test_faves.rb |