Updated spec syntax to match latest rspec version.