Skip to content

Commit

Permalink
Updates tests for active=>is_active change.
Browse files Browse the repository at this point in the history
  • Loading branch information
adlio committed Jan 6, 2018
1 parent bec9829 commit 01bbca5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestGetProjectWithStartEndDates(t *testing.T) {
t.Errorf("Expected 'TEST', got '%s'.", project.Name)
}

if !project.Active {
if !project.IsActive {
t.Error("Project should have been active")
}

Expand Down Expand Up @@ -120,7 +120,7 @@ func TestCreateProject(t *testing.T) {

p := Project{
Name: "New Name",
Active: true,
IsActive: true,
ClientID: 12345,
}

Expand All @@ -142,7 +142,7 @@ func TestUpdateProject(t *testing.T) {
p := Project{
ID: 1234,
Name: "New Name",
Active: true,
IsActive: true,
ClientID: 12345,
}

Expand Down
4 changes: 2 additions & 2 deletions testdata/projects/12670372.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"client_id":3936632,
"name":"TEST",
"code":"",
"active":true,
"billable":true,
"is_active":true,
"is_billable":true,
"bill_by":"Project",
"budget":24.0,
"budget_by":"project",
Expand Down
4 changes: 2 additions & 2 deletions testdata/projects/project-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"client_id": 3954262,
"name": "NYRA Web Site Builds x 5",
"code": "",
"active": true,
"billable": true,
"is_active": true,
"is_billable": true,
"bill_by": "Project",
"hourly_rate": 150,
"budget": 2333,
Expand Down

0 comments on commit 01bbca5

Please sign in to comment.