The step definition below allows you to write: Then I should see a link labeled "Foo" But I should not...

makandra dev

Attached you can find an example ~/.ssh/config file which makes working with SSH more pleasant. It contains several tweaks:

When you edit text in Balsamiq Mockups, you can define inline styles like this: | Bold | Some *bold* text | | Italics | Some...

If you need to strip carriage return characters from a text file, you can use Vim: vim file.txt

Although regular expression syntax is 99% interchangeable between languages, keep this in mind: By default, the dot character (".") does not...

Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2

makandra dev
github.com

The shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here...

teddziuba.com

Around the time in my life when I stopped ordering drinks made with more than one ingredient, I was woken...

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

This note describes a Cucumber step definition that lets you say: Then "Mow lawn" should be an option for "Activity...

Find-as-you-type boxes are usually built by observing changes in a text field, and querying the server via...

When you need to see the content of a page (i.e. not all the HTML but the relevant text body...

Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:

web.archive.org

This step tests whether a given select option comes preselected in the HTML. There is another step to test that...

Sometimes the order in which strings appear on a page matters to you. Spreewald gives you steps like these:

Capybara's has_css? matcher has a couple of options you might find useful. Check that a selector appears a...

css-tricks.com

Because they are vector, it would make sense if we could do things that other vector programs (e.g. Adobe Illustrator...

This will not work (it always passes): Then the "Title" field should contain "" The value is turned into a regular...

alfajango.com

The CSS Emoticons plugin is a simple jQuery plugin (and stylesheet) that allows you to turn any text emoticons on...

github.com

You can use the whatlanguage gem to detect the language of a Ruby string. Note that it also has not...

paulirish.com

Cached fonts WILL caused an unstyled flash of text.

This raises "Could not find first Keyword": describe Keyword do it { should validate_uniqueness_of(:text) } end Do this instead...

Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...

sudo gem install gettext --no-ri --no-rdoc sudo gem install fast_gettext --no-ri --no-rdoc script/plugin install git://...