spec/generators/state_generator_spec.rb in looky-lu-0.0.2 vs spec/generators/state_generator_spec.rb in looky-lu-0.0.3
- old
+ new
@@ -12,10 +12,10 @@
@gen.object_name = 'ObjectName'
end
#.send(:method_name, args)
it 'should get model location' do
- @gen.send(:model_location).should == "app/models/ObjectName.rb"
+ @gen.send(:model_location).should == "app/models/object_name.rb"
end
it 'should get migration_location' do
version = '12345'
@gen.send(:migration_location, version).should == "db/migrate/#{version}_lookylu_create_object_names.rb"