Skip to content

Commit

Permalink
Refactoring tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalimaha committed Apr 23, 2016
1 parent de70d59 commit 18dc691
Show file tree
Hide file tree
Showing 9 changed files with 3,143 additions and 246 deletions.
3 changes: 3 additions & 0 deletions app/helpers/tweet_helper.rb
Expand Up @@ -12,6 +12,9 @@ def get_next_id

def create_tweet(username, tweet)
user_id = get_user_id(username)
puts "Username? #{username}"
puts "User ID? #{user_id}"
puts "Tweet? #{tweet}"
tweet['user_id'] = user_id
tweet['time'] = DateTime.now.strftime('%Q')
tweet_id = get_next_id
Expand Down
2 changes: 1 addition & 1 deletion coverage/.last_run.json
@@ -1,5 +1,5 @@
{
"result": {
"covered_percent": 66.17
"covered_percent": 19.55
}
}
243 changes: 123 additions & 120 deletions coverage/.resultset.json
Expand Up @@ -531,62 +531,6 @@
},
"Unit Tests": {
"coverage": {
"/Volumes/DataSD/development/git-repositories/R3Twitter/app/controllers/tweet_controller.rb": [
1,
null,
1,
null,
1,
0,
null,
null,
1,
0,
0,
0,
null,
null,
1,
0,
0,
0,
0,
0,
0,
0,
0,
null,
null,
1,
1,
1,
1,
1,
1,
1,
1,
1,
null,
1,
null,
null,
null
],
"/Volumes/DataSD/development/git-repositories/R3Twitter/app/controllers/application_controller.rb": [
1,
null,
1,
null,
1,
null,
1,
null,
1,
0,
null,
null,
null
],
"/Volumes/DataSD/development/git-repositories/R3Twitter/app/helpers/application_helper.rb": [
1,
null,
Expand All @@ -595,16 +539,16 @@
1,
null,
1,
12,
2,
null,
12,
2,
null,
null,
null,
1,
13,
13,
13,
2,
2,
2,
null,
null,
null
Expand All @@ -619,19 +563,22 @@
null,
null,
1,
4,
2,
null,
null,
1,
2,
2,
2,
2,
2,
2,
2,
4,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
null,
null,
null,
Expand All @@ -641,22 +588,22 @@
null,
null,
1,
1,
1,
0,
0,
null,
null,
1,
1,
1,
1,
1,
0,
0,
0,
null,
null,
1,
1,
1,
1,
1,
0,
0,
0,
null,
null,
null
Expand All @@ -671,25 +618,25 @@
null,
null,
1,
2,
0,
null,
null,
1,
2,
2,
2,
0,
0,
0,
null,
null,
1,
0,
null,
null,
1,
3,
0,
null,
null,
1,
1,
0,
null,
null,
1,
Expand Down Expand Up @@ -719,73 +666,129 @@
null,
null,
1,
2,
0,
null,
null,
null
],
"/Volumes/DataSD/development/git-repositories/R3Twitter/app/controllers/application_controller.rb": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"/Volumes/DataSD/development/git-repositories/R3Twitter/app/controllers/tweet_controller.rb": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"/Volumes/DataSD/development/git-repositories/R3Twitter/app/controllers/user_controller.rb": [
1,
1,
null,
1,
null,
1,
null,
1,
null,
null,
1,
0,
0,
0,
0,
null,
0,
0,
null,
null,
0,
0,
null,
null,
null,
1,
0,
0,
0,
0,
0,
0,
0,
null,
null,
0,
0,
null,
null,
null,
0,
0,
null,
null,
null,
1,
0,
0,
null,
null,
1,
0,
0,
0,
0,
0,
null,
null,
null
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
"timestamp": 1461397347
"timestamp": 1461455549
}
}

0 comments on commit 18dc691

Please sign in to comment.