test/unit/models/journal_test.rb in xeroizer-2.20.0 vs test/unit/models/journal_test.rb in xeroizer-3.0.0
- old
+ new
@@ -1,13 +1,13 @@
-require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper'))
+require 'unit_test_helper'
class JournalTest < Test::Unit::TestCase
include TestHelper
include Xeroizer::Record
-
+
def setup
- @client = Xeroizer::PublicApplication.new(CONSUMER_KEY, CONSUMER_SECRET)
+ @client = Xeroizer::OAuth2Application.new(CLIENT_ID, CLIENT_SECRET)
@journal = @client.Journal.build
@journal.journal_id = "0d926df3-459f-4264-a3a3-49ac065eb0ed"
@journal.date = DateTime.strptime("2015-01-01T00:00:00Z")
@journal.created_date_utc = DateTime.strptime("2015-01-01T00:00:00Z")
@@ -37,8 +37,8 @@
end
it "should render date" do
assert_equal "2015-01-01", @doc.xpath("//JournalDate").text
end
- end
+ end
end