spec/git_trend/cli_spec.rb in git-trend-0.1.5 vs spec/git_trend/cli_spec.rb in git-trend-0.1.6
- old
+ new
@@ -27,10 +27,11 @@
|No. Name Lang Star
|--- ---------------------------------------- ---------- ------
| 1 gionkunz/chartist-js JavaScript 363
| 2 kitematic/kitematic JavaScript 327
| 3 tmux-plugins/tmux-resurrect Shell 217
+
EOS
expect { @cli.invoke(:list, [], number: number, description: false) }.to output(res).to_stdout
end
end
@@ -79,10 +80,11 @@
| 21 junegunn/fzf Ruby 6
| 22 digitaloceancloud/resource_kit Ruby 6
| 23 rapid7/metasploit-framework Ruby 5
| 24 tenderlove/the_metal Ruby 6
| 25 bbatsov/rubocop Ruby 5
+
EOS
expect { @cli.invoke(:list, [], language: language, description: false) }.to output(res).to_stdout
end
end
@@ -119,10 +121,11 @@
| 21 freerunnering/SwipeSelection Objective-C++ 0
| 22 kseebaldt/deferred Objective-C++ 0
| 23 rbaumbach/Swizzlean Objective-C++ 0
| 24 Smartype/iOS_VPNPlugIn Objective-C++ 0
| 25 swift2js/swift2js Objective-C++ 0
+
EOS
expect { @cli.invoke(:list, [], language: language, description: false) }.to output(res).to_stdout
end
end
end
@@ -169,10 +172,11 @@
| 21 twbs/bootstrap CSS 300
| 22 google/web-starter-kit CSS 372
| 23 quasado/gravit JavaScript 365
| 24 meteor/meteor JavaScript 362
| 25 Netflix/Scumblr Ruby 305
+
EOS
expect { @cli.invoke(:list, [], since: since, description: false) }.to output(res).to_stdout
end
end
@@ -205,10 +209,11 @@
| 21 ochococo/Design-Patterns-In-Swift Swift 1230
| 22 mbostock/d3 JavaScript 1008
| 23 VodkaBears/Vide JavaScript 1136
| 24 driftyco/ionic JavaScript 1007
| 25 fians/marka CSS 989
+
EOS
expect { @cli.invoke(:list, [], since: since, description: false) }.to output(res).to_stdout
end
end
end
@@ -284,10 +289,11 @@
| 21 gavinlaking/vedeu Ruby 47
| 22 ruby/ruby Ruby 41
| 23 apotonick/paperdragon Ruby 46
| 24 junegunn/fzf Ruby 41
| 25 imathis/octopress Ruby 36
+
EOS
expect { @cli.invoke(:list, [], language: language, since: since, description: false) }.to output(res).to_stdout
end
end
end
@@ -556,10 +562,11 @@
| 21 ruslanskorb/RSKImageCropper Objective-C 46
| 22 kyze8439690/ResideLayout Java 44
| 23 ParsePlatform/f8DeveloperConferenceApp Java 41
| 24 chriskiehl/Gooey Python 41
| 25 discourse/discourse Ruby 41
+
EOS
end
def dummy_result_no_options
<<-'EOS'.unindent
@@ -588,8 +595,9 @@
| 21 ruslanskorb/RSKImageCropper Objective-C 46 An image cropper for iOS like in the Contacts app with support for land...
| 22 kyze8439690/ResideLayout Java 44 An Android Layout which has a same function like https://github.com/rom...
| 23 ParsePlatform/f8DeveloperConferenceApp Java 41
| 24 chriskiehl/Gooey Python 41 Turn (almost) any command line program into a full GUI application with...
| 25 discourse/discourse Ruby 41 A platform for community discussion. Free, open, simple.
+
EOS
end
end