Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[Specs] Minor fixes.

  • Loading branch information...
commit 04bb26a7810e4cb67539c5743236fb444d1c1bd1 1 parent b8784a9
Fabio Pelosin irrationalfab authored
5 spec/functional/command/presenter_spec.rb
@@ -22,15 +22,16 @@
22 22 end
23 23
24 24 it "presents the stats of a specification set" do
25   - repo = {"forks"=>42, "watchers"=>318}
  25 + repo = { "forks"=>42, "watchers"=>318, "pushed_at"=>"2011-01-26T19:06:43Z" }
26 26 Octokit.expects(:repo).with("robbiehanson/CocoaLumberjack").returns(repo)
27   - presenter = Presenter.new(argv('--stats'))
  27 + presenter = Presenter.new(argv('--stats', '--no-color'))
28 28 output = presenter.describe(@set)
29 29 output.should.include? 'Author: Robbie Hanson'
30 30 output.should.include? 'License: BSD'
31 31 output.should.include? 'Platform: iOS - OS X'
32 32 output.should.include? 'Watchers: 318'
33 33 output.should.include? 'Forks: 42'
  34 + output.should.include? 'Pushed: more than a year ago'
34 35 end
35 36
36 37 it "should print at least one subspec" do
1  spec/unit/generator/documentation_spec.rb
@@ -36,6 +36,7 @@
36 36 '--keep-undocumented-objects',
37 37 '--keep-undocumented-members',
38 38 '--keep-intermediate-files',
  39 + '--exit-threshold', '2',
39 40 '--index-desc', 'README',
40 41 # TODO We need to either make this a hash so that options can be merged
41 42 # or not use any defaults in case an options are specified.

0 comments on commit 04bb26a

Please sign in to comment.
Something went wrong with that request. Please try again.