mordaroso / guard-motion

Guard::Motion automatically run your RubyMotion specs (much like autotest)
MIT License
45 stars 12 forks source link

Fix duplicate symbol error when linking #3

Closed mattgreen closed 11 years ago

mattgreen commented 12 years ago

When running specific specs, it was possible for a single spec to be compiled twice, and then linked. The linker would choke on this, claiming a duplicate symbol. This pull fixes that bug by expanding the filename for each path before passing it to the rake spec task.

This was triggered by an incorrect Guardfile template included with guard-motion. The template was updated, as well as the README. The latter two fixes are not strictly necessary, but are included for completeness.

mattgreen commented 12 years ago

Also, I'm pretty sure the changelog/version bump commit is a GitHub bug.

mordaroso commented 12 years ago

We could add a separate class that does the cleanup like guard-rspec does in the Inspector. I think we need more cleanup anyway. For example for deleted/renamed files and the keep_failed feature.

What do you think?

mattgreen commented 12 years ago

Sounds good. I'll try to get to this tomorrow or Friday.

mordaroso commented 11 years ago

Hi @mattgreen I've added an Inspector class myself now. Does this solve your problem too?

mattgreen commented 11 years ago

Looks like it! Thank you!