Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6530 - Plugin install from Github should fail with a message if Git is not installed #208

Closed
wants to merge 1 commit into from

Conversation

FunkyFortune
Copy link

Quick change for https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6530

Check if svn/git is installed prior to actually installing a plugin.

Not sure how to write a test to cover this...

@andhapp
Copy link
Contributor

andhapp commented Mar 9, 2011

@dmathieu
Copy link
Contributor

dmathieu commented Jun 3, 2011

I also think both commands, which do the same for different tools, should be named similarly.

@sikachu
Copy link
Member

sikachu commented Jun 15, 2011

I really like this, but I don't think it's ready yet.

  • Those ? methods, you can easily make them as alias method. That would be better because I believe it'll be done in C.
  • is_ convention, doesn't make sense to have it.
  • It would be better if you're detecting which command we need, instead of throwing error that "git/svn etc. is missing"

Do you mind make another patch and rebase your patch? I think that would be nice for 3.2.x

@jeremy
Copy link
Member

jeremy commented Oct 9, 2011

Bump. Interested in addressing this feedback?

This could use a test, too, demonstrating that the failure is fixed.

@tylercoville
Copy link
Contributor

Where do the tests reside for rails plugin if I am looking at the structure of the tests directory they should reside in /railties/test/application which is where the tests for console, runner, other commands etc. but I can't find any which look like they currently have tests that apply. If one doesn't exist I can make some but don't want to redo something that already exists.

@waseem
Copy link
Contributor

waseem commented Nov 25, 2011

I tried to work on this issue. See waseem@2a1a907 But am not submitting a pull request because I am unable to write tests cases for plugin installation.

I have put a railties/test/application/plugin_test.rb file that will hold tests for plugin installation/removal etcetera.

I was not able to write tests because if you see line#15 of plugin_test.rb, when I try to do bundle exec rails plugin install, test tries to really install the plugin. Is there a way I could stub out Plugin#install_using_#{method} methods?

I also posted a message on core mailing list https://groups.google.com/forum/#!topic/rubyonrails-core/2dm6tb6OcHM but did not get any responses.

waseem added a commit to waseem/rails that referenced this pull request Dec 3, 2011
@waseem
Copy link
Contributor

waseem commented Jan 7, 2012

This can be closed because of dad7fdc#diff-17

@arunagw
Copy link
Member

arunagw commented Jan 8, 2012

Closing this

@arunagw arunagw closed this Jan 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants