This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| # copy and paste this into your terminal to start an IRB session and use Capybara's DSL to write tests interactively | |
| # Thanks to Tom Clements | |
| # http://tom-clements.com/blog/2012/02/25/capybara-on-the-command-line-live-browser-testing-from-irb/ | |
| irb | |
| require 'capybara/dsl' | |
| include Capybara::DSL | |
| Capybara.default_driver = :selenium | |
| visit "http://127.0.0.1:3000" | |
| visit "http://www.google.com" #etc... |
| # default vim on osx doesn't have python, ruby support or clipboard support. These configure options add all that | |
| # I also ran into problems using rvm ruby, had to include those libs in the LDFLAGS for vim | |
| # Steps: | |
| $ rvm install 1.9.1 | |
| $ rvm use 1.9.1 # vim doesn't support anything higher | |
| $ curl ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 | tar xj | |
| $ cd vim73 | |
| $ ./configure --with-features=huge --enable-perlinterp=yes --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-multibyte |
| ## What you Get | |
| - A working linux box | |
| - Java JDK 1.6.0_xx | |
| - JBoss 5.x.x | |
| - Jenkins with Yale-Maven-Application-Installer | |
| ## The deets | |
| - JBoss: | |
| -- Installed JBOSS_HOME=/usr/local/jboss-eap-..... | |
| -- Apps/Nodes = /usr/local/jboss-apps |
| @RunWith(Enclosed.class) | |
| public class OuterClassTest { | |
| @Mock protected Dependency dependency; | |
| protected SUT subject; | |
| @Before | |
| public void setUp() { | |
| subject = new SUT(dependency); | |
| } | |
The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.
You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |