Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add failing test for story_generator.

  • Loading branch information...
commit 8fd2211ae05dc888ad5907db921f7e368b599b2d 1 parent aae3d66
@avh4 avh4 authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 test/test_story_generator.rb
View
10 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
Please sign in to comment.
Something went wrong with that request. Please try again.