test/unit/ruby_generator_test.rb in sprout-1.1.5.pre vs test/unit/ruby_generator_test.rb in sprout-1.1.7.pre
- old
+ new
@@ -53,16 +53,16 @@
assert_file main_file
test_dir = File.join project_dir, 'test'
assert_file test_dir
- test_helper = File.join test_dir, 'test_helper.rb'
+ unit_dir = File.join test_dir, 'unit'
+ assert_file unit_dir
+
+ test_helper = File.join unit_dir, 'test_helper.rb'
assert_file test_helper do |content|
assert_matches /require 'some_project'/, content
end
-
- unit_dir = File.join test_dir, 'unit'
- assert_file unit_dir
test_case = File.join unit_dir, 'some_project_test.rb'
assert_file test_case do |content|
assert_matches /class SomeProjectTest/, content
end