Skip to content
Browse files

Add an integration test case that ensures it fails when it should

  • Loading branch information...
1 parent dd07e03 commit 889dcfcaf5f39928b555e23ec9693e8c991f49e9 @stevehodgkiss committed Aug 24, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/generator_spec/matcher_spec.rb
View
12 spec/generator_spec/matcher_spec.rb
@@ -30,6 +30,18 @@
end
}
end
+
+ it "fails when it doesnt match" do
+ expect {
+ destination_root.should have_structure {
+ directory "db" do
+ directory "migrate" do
+ no_file "123_create_tests.rb"
+ end
+ end
+ }
+ }.to raise_error
+ end
end
TMP_ROOT = Pathname.new(File.expand_path("../../tmp"))

0 comments on commit 889dcfc

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