forked from aaronrussell/freeagent_api
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d89f27d
commit c520687
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
coverage | ||
rdoc | ||
pkg | ||
test/user_credentials.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ def self.find(timeslip_id) | |
end | ||
end | ||
|
||
module Freeagent | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,32 @@ | ||
require 'test_helper' | ||
require 'yaml' | ||
|
||
class FreeagentApiTest < Test::Unit::TestCase | ||
should "probably rename this file and start testing for real" do | ||
flunk "hey buddy, you should probably rename this file and start testing for real" | ||
|
||
include Freeagent | ||
|
||
context "Before we do anything, we" do | ||
setup do | ||
@config ||= YAML.load_file 'test/user_credentials.yaml' | ||
end | ||
should "set the domain" do | ||
assert Freeagent.domain = @config['domain'] | ||
end | ||
should "set the username" do | ||
assert Freeagent.username = @config['username'] | ||
end | ||
should "set the password" do | ||
assert Freeagent.password = @config['password'] | ||
end | ||
end | ||
|
||
context "Many projects" do | ||
setup do | ||
@projects = Project.find_all | ||
end | ||
should "be in an array" do | ||
assert @projects.is_a? Array | ||
end | ||
end | ||
|
||
end |