diff --git a/spec/specification/linter_spec.rb b/spec/specification/linter_spec.rb index bdcb13433..5fb7f03c1 100644 --- a/spec/specification/linter_spec.rb +++ b/spec/specification/linter_spec.rb @@ -138,7 +138,7 @@ def message_should_include(*values) #------------------# it "checks the version is higher than 0" do - @spec.version = nil + @spec.stubs(:version).returns(Pod::Version.new('0')) message_should_include('version', '0') end