Skip to content

Commit

Permalink
+ generate examples correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Nov 8, 2012
1 parent b555898 commit d2d15a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Expand Up @@ -23,6 +23,7 @@ def generate
copy_all_files copy_all_files
copy_all_files expand_prototype_path('shared/server') copy_all_files expand_prototype_path('shared/server')
copy_all_files expand_prototype_path('shared/both') copy_all_files expand_prototype_path('shared/both')
copy_all_files expand_prototype_path('shared/client')
exclaim "\"#{name}\" is a great project name! Have fun :)\n" exclaim "\"#{name}\" is a great project name! Have fun :)\n"
exclaim "" exclaim ""
exclaim "Next steps:" exclaim "Next steps:"
Expand Down
Expand Up @@ -22,6 +22,7 @@ def generate
create_target_directory create_target_directory
copy_all_files copy_all_files
copy_all_files expand_prototype_path('shared/both') copy_all_files expand_prototype_path('shared/both')
copy_all_files expand_prototype_path('shared/client')
exclaim "\"#{name}\" is a great project name! Have fun :)\n" exclaim "\"#{name}\" is a great project name! Have fun :)\n"
exclaim "" exclaim ""
exclaim "Next steps:" exclaim "Next steps:"
Expand Down
Expand Up @@ -25,7 +25,7 @@
it "should do things in order" do it "should do things in order" do
@sinatra.should_receive(:exclaim).twice.ordered # Initial explanation @sinatra.should_receive(:exclaim).twice.ordered # Initial explanation
@sinatra.should_receive(:create_target_directory).once.ordered @sinatra.should_receive(:create_target_directory).once.ordered
@sinatra.should_receive(:copy_all_files).twice.ordered @sinatra.should_receive(:copy_all_files).exactly(3).times.ordered
@sinatra.should_receive(:exclaim).at_least(7).times.ordered # Some user steps to do @sinatra.should_receive(:exclaim).at_least(7).times.ordered # Some user steps to do


@sinatra.generate @sinatra.generate
Expand Down

0 comments on commit d2d15a7

Please sign in to comment.