Permalink
Browse files

Autoload spec_helper

  • Loading branch information...
1 parent fe6772c commit 8435ac78e14ab05a5c68d82ba9156badcd4ae581 @whereisciao whereisciao committed Feb 10, 2013
View
1 .rspec
@@ -0,0 +1 @@
+--require spec_helper
@@ -1,9 +1,8 @@
-require "spec_helper"
require "stringio"
require "quickeebooks/online/model/account"
describe "Quickeebooks::Online::Model::Account" do
-
+
it "should convert Ruby to XML" do
account = Quickeebooks::Online::Model::Account.new
account.sync_token = 1
@@ -14,7 +13,7 @@
xml = account.to_xml(:fields => 'Name').write_to(s, :indent => 0, :indent_text => '')
xml.string.gsub(/\n/, '').should == expected
end
-
+
it "has a validation error on invalid subtype" do
account = Quickeebooks::Online::Model::Account.new
account.sub_type = "invalid"
@@ -32,10 +31,10 @@
account.sub_type = "AccountsPayable"
account.valid?.should == true
end
-
+
it "cannot delete an Account without providing required fields" do
account = Quickeebooks::Online::Model::Account.new
account.valid_for_deletion?.should == false
end
-
+
end
@@ -1,4 +1,3 @@
-require "spec_helper"
require "quickeebooks/online/model/company_meta_data"
describe "Quickeebooks::Online::Model::CompanyMetaData" do
@@ -1,4 +1,3 @@
-require "spec_helper"
require "quickeebooks/online/model/customer"
@@ -1,4 +1,3 @@
-require "spec_helper"
require "quickeebooks/online/model/invoice"
@@ -1,4 +1,3 @@
-require "spec_helper"
require "quickeebooks/online/model/payment"
@@ -1,4 +1,3 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require "fakeweb"
require "oauth"
require "quickeebooks/online/service/account"
@@ -1,4 +1,3 @@
-require "spec_helper"
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require "spec_helper"
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require "spec_helper"
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require "spec_helper"
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require "spec_helper"
require "fakeweb"
require "oauth"
require "quickeebooks/online/service/service_base"
@@ -1,12 +1,11 @@
-require "spec_helper"
require "fakeweb"
require "oauth"
require "quickeebooks"
describe "Quickeebooks::Online::Service::Sort" do
before(:all) do
end
-
+
it "can generate a sorting parameter" do
filter = Quickeebooks::Online::Service::Sort.new("FirstName", "NewestToOldest")
filter.to_s.should == "FirstName NewestToOldest"
@@ -1,4 +1,3 @@
-require "spec_helper"
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,5 +1,3 @@
-require "spec_helper"
-
require "quickeebooks/windows/model/customer"
describe "Quickeebooks::Windows::Model::Customer" do
@@ -1,4 +1,3 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require "fakeweb"
require "oauth"
require "quickeebooks"
@@ -1,4 +1,3 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require "quickeebooks"
describe Quickeebooks do

0 comments on commit 8435ac7

Please sign in to comment.