Category Archives: RSpec

Adding A ‘has_image?’ Matcher To Capybara

I’m rather shocked that Capybara doesn’t have a ‘has_image?’ matcher built in to it. But after search around google for a while, the only thing I found was a bunch of StackOverflow answers that all say to use ‘has_xpath?’ to … Continue reading 

Also posted in Capybara, Rails, Test Automation | 3 Comments

Mocks, Stubs and Unreadable Tests: Clearly I’m Doing This Wrong

I tweeted this a few minutes ago: This is in reference to a horrible test that I wrote today. It’s got 2 assertions and more than 20 lines of context to set up the mocks that I needed, to isolate … Continue reading 

Also posted in AntiPatterns, Principles and Patterns, Quality, Test Automation, Testing, Unit Testing | 19 Comments

Verifying Generated HTML With HAML, Cucumber, Capybara and RSpec

Several of the reports that the app that Joey and I are working on will be generated via HAML to be displayed in the app, for the users. The generated content will end up being HTML, but starts it’s life … Continue reading 

Also posted in Capybara, Cucumber, HAML, Ruby, Test Automation, Testing | Leave a comment

A Semi-Intelligent Watchr Script For Rails And RSpec

I’m using Watchr in my current Rails 3 project, instead of Autotest, to run my Cucumber and RSpec tests whenever I save a file. It makes life so much easier than having to manually run them. Yesterday, I decided to … Continue reading 

Also posted in Productivity, Ruby, Smoke Test, Test Automation, Testing, Unit Testing | 2 Comments

Web Development Stack In OSX

It has been almost a month since I ventured out into contracting and took up OSX on a Macbook Pro as my primary operating system. In that time, I’ve been very fortunate to have Joey Beninghove guide me through the … Continue reading 

Also posted in Behavior Driven Development, Command Line, Git, Productivity, Ruby, Source Control, Test Automation, Testing, Tools and Vendors, Unit Testing, Vim | 7 Comments

Design And Testability

In the line of business applications that I build, it’s considered good practice to use a test-first approach; Test-Driven Development, Behavior-Driven Development, or whatever you want to call it. Write a test, verify that it fails for the right reasons, … Continue reading 

Also posted in .NET, Behavior Driven Development, C#, Community, Pragmatism, Principles and Patterns, Ruby, Telerik, Tools and Vendors, Unit Testing | 38 Comments

Quick Fix (and a question): Mongoid Edge

I just went throught the process of upgrading my current app to the latest edge for Rails 3, Mongoid and all of my other gems. And when I went to run my specs, I received this error: Database command ‘drop’ … Continue reading 

Also posted in Agile, Kanban, Lean Systems, Management, Productivity, Quality, Retrospectives, Throughput, Workflow | 17 Comments

The Ruby/Rails Life – My Rails 3 Stack – Part 2

Rails Deployment & Testing There are some really nice tools available for deployment and testing rails. Below is a brief description of some of the ones I’ve been using with success. Capistrano I remember in the early days of my … Continue reading 

Also posted in Branch-Per-Feature, Continuous Integration, Git, Management, Principles and Patterns, Smoke Test, Source Control, Subversion, Workflow | 13 Comments

ZenTest+Autospec Is An RSpec TDDer’s Best Friend

In all the time that I’ve been using RSpec (almost a year now), I never knew about the zentest or autospec tools until I was recently watching a code kata that was using Ruby and RSpec. … so, now I … Continue reading 

Also posted in Albacore, Behavior Driven Development, Command Line, Continuous Integration, Productivity, Rake, Ruby, Unit Testing, Vim | 3 Comments

selenium-rspec-dsl available on RubyGems.org and GitHub

I have released my first version of selenium-rspec-dsl on RubyGems.org and on GitHub.  It that makes selenium testing easier to create, maintainable, and scalable.  Features: Runs on Ruby Selenium-Client 1.2.17, and Selenium-Grid 1.0.4 with Selenium RC 1.0.3 Rake Multi-Processing Tests … Continue reading 

Also posted in .NET, Analysis and Design, Community, Principles and Patterns | Leave a comment