Converting to Rspec tests.