Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanheim committed Aug 6, 2010
1 parent 973237c commit 6db4b6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/nachos/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ def watched
def sync
repos = github.watched
shell.say "About to sync #{repos.size} repositories"
repos.each do |repo|
system Hub("clone #{repo.url}").command
Dir.chdir(main.config.repo_root) do
repos.each do |repo|
system Hub("clone #{repo.url}").command
end
end
end

Expand Down
3 changes: 1 addition & 2 deletions spec/nachos/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
it "loads config and displays it, if found" do
cli = Nachos::CLI.new
cli.stubs(:github_summary).returns("You have n repos...")
cli.stubs(:config_path).returns(mock(:exist? => true))
cli.stubs(:load_config).returns("config here")
cli.stubs(:main).returns(stub(:display_config => "config here"))
cli.invoke(:info)
cli.shell.output.should include("Current configuration: config here")
end
Expand Down

0 comments on commit 6db4b6e

Please sign in to comment.