message="Specification `#{spec.name}` specifies an inconsistent `swift_version` (`#{spec_swift_version}`) compared to the one present in your `.swift-version` file (`#{dot_swift_version}`). "\
'Please remove the `.swift-version` file which is now deprecated and only use the `swift_version` attribute within your podspec.'
message="Specification `#{spec.name}` specifies an inconsistent `swift_version` (`#{spec_swift_version}`) compared to the one passed during lint (`#{@swift_version}`)."
result.message.should=='Specification `JSONKit` specifies an inconsistent `swift_version` (`4.0`) compared to the one present in your `.swift-version` file (`3.2`). '\
'Please remove the `.swift-version` file which is now deprecated and only use the `swift_version` attribute within your podspec.'
end
it'does not error when swift version spec attribute matches dot swift version'do