Shopify/batman-rails — Issue #9: Tests don't pass
Author: roywblack
Created: 2011-10-26 23:24:39+00:00
State: open

If I run all tests, the following test do not pass.

1) Failure:
test_simple_model(ModelGeneratorTest) [/home/roy/Projects/br-test/test/model_generator_test.rb:10]:
Expected /class\ Sample\.Task\ extends\ Batman\.Model/ to match "class Dummy.Task extends Batman.Model\n @storageKey: 'tasks'\n @persist Batman.RailsStorage\n\n @encode 'title'\n @encode 'created_at', Batman.Encoders.railsDate\n".

2) Failure:
test_two_word_model_is_camelcased(ModelGeneratorTest) [/home/roy/Projects/br-test/test/model_generator_test.rb:26]:
Expected /class\ Sample\.RegularUser\ extends\ Batman\.Model/ to match "class Dummy.RegularUser extends Batman.Model\n @storageKey: 'regular_users'\n @persist Batman.RailsStorage\n\n @encode 'name'\n".

If I only test `test/model_generator_test.rb` it passes.