test/test_newsvine.rb in ubiquitously-0.0.1.6 vs test/test_newsvine.rb in ubiquitously-0.1.0
- old
+ new
@@ -1,12 +1,12 @@
require File.dirname(__FILE__) + '/test_helper.rb'
module Ubiquitously
class NewsvineTest < ActiveSupport::TestCase
- context "Newsvine::User" do
+ context "Newsvine::Account" do
setup do
- @user = Ubiquitously::Newsvine::User.new
+ @user = Ubiquitously::Newsvine::Account.new
end
context "login" do
should "raise informative error if invalid password" do
@user.password = "bad password"
@@ -28,10 +28,10 @@
@post = Ubiquitously::Newsvine::Post.new(
:title => "A Title",
:description => "A Description",
:tags => ["usability", "ruby", "web services", "open source"],
:url => "http://example.com/abcdef",
- :user => Ubiquitously::Newsvine::User.new
+ :user => Ubiquitously::Newsvine::Account.new
)
end
should "create a post" do
assert @post.save(:debug => true)