ctran/annotate_models — pull request #99 by vlado (2012-10-02 10:46:18+00:00)
Title: Fix position option

I noticed --position option doesn't work so I did some investigation and noticed that when calling annotate_one_file from AnnotateModels.annotate arguments are not provided correctly.

This commit fixes that. Test are passing but I have 7 pending cause I don't have RVM installed.

vlados-imac:annotate_models vlado$ rake

...

Pending:
annotate inside Rails, using works under Rails 2.3 With Bundler
# Must have RVM installed.
# ./spec/integration/integration_spec.rb:27
annotate inside Rails, using works under Rails 3.2.2
# Must have RVM installed.
# ./spec/integration/integration_spec.rb:27
annotate inside Rails, using works under Rails 3.2.8
# Must have RVM installed.
# ./spec/integration/integration_spec.rb:27
annotate inside Rails, using works under Rails 3.2 Autoloading Factory Girl
# Must have RVM installed.
# ./spec/integration/integration_spec.rb:27
annotate inside Rails, using works under Rails 3.2 Custom Inflections
# Must have RVM installed.
# ./spec/integration/integration_spec.rb:27
annotate inside Rails, using works under Rails 3.2 With Asset Pipeline
# Must have RVM installed.
# ./spec/integration/integration_spec.rb:27
annotate inside Rails, using works under Standalone
# Must have RVM installed.
# ./spec/integration/integration_spec.rb:27

Finished in 0.29769 seconds
48 examples, 0 failures, 7 pending