MicahChalmer / mr-sparkle

Runs Unicorn, automatically reloading the application, but not bundled gems. Based on namelessjon's "Magical Reloading Sparkles."
MIT License
19 stars 9 forks source link

capybara? #7

Open cj opened 10 years ago

cj commented 10 years ago

Hi,

First off thanks for this awesome gem! Would it be possible to do something like this https://github.com/raggi/capybara-puma/blob/master/lib/capybara-puma.rb with mr-sparkle?

MicahChalmer commented 10 years ago

Thanks, glad you like it!

But I'm not quite sure what the suggestion is for capybara. Mr-sparkle is about automatic code reloading--other than that it's a wrapper around unicorn. I can't imagine you'd want to change the code and have it auto-reload while in the middle of running the test suite, so I don't see what value mr-sparkle could add (over just using unicorn directly) as a server for capybara.

Am I missing something?

cj commented 10 years ago

@MicahChalmer I like to work inside my test environment for the most part, mr-sparkle wouldn't reload anything unless I did a binding.pry to stop the application and then made some changes etc... I also use it to update the UI if I see something looking funky during a test. I.e. on a wizard with say 5 steps, I can run a test stop it at step 3 and play around with the ui. So would it be possible?

Thank you again.