Permalink
Browse files

Add failing test for story_generator.

  • Loading branch information...
1 parent aae3d66 commit 8fd2211ae05dc888ad5907db921f7e368b599b2d @avh4 avh4 committed Jul 4, 2008
Showing with 8 additions and 2 deletions.
  1. +8 −2 test/test_story_generator.rb
@@ -28,8 +28,14 @@ def teardown
def test_generator_without_options
name = "myapp"
- run_generator('story', [name], sources)
- assert_generated_file("some_file")
+ story = "story"
+ run_generator(story, [name], sources)
+ assert_directory_exists "stories"
+ assert_generated_file "stories/story_helper.rb"
+ assert_generated_file "stories/#{story}_story"
+ assert_generated_file "stories/#{story}_story.rb"
+ assert_directory_exists "stories/steps"
+ assert_genreated_file "stories/steps/#{story}_steps.rb"
end
private

0 comments on commit 8fd2211

Please sign in to comment.