Skip to content

Commit

Permalink
update test with current master
Browse files Browse the repository at this point in the history
test passes:
$ ruby -S rspec spec/unit/plugins/php_spec.rb

Conflicts:
	spec/unit/plugins/php_spec.rb
  • Loading branch information
glensc authored and btm committed Nov 25, 2013
1 parent fe5489b commit abcaf72
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/unit/plugins/php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@
end

it "should parse builddate even if it's suhosin patched" do
@status = 1
@stdout = "PHP 5.3.27 with Suhosin-Patch (cli) (built: Aug 30 2013 04:30:30) \nCopyright (c) 1997-2013 The PHP Group\nZend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies"
@stderr = ""
@plugin.stub(:run_command).with({:no_status_check=>true, :command=>"php -v"}).and_return([@status, @stdout, @stderr])
@plugin.stub(:shell_out).with("php -v").and_return(mock_shell_out(0, @stdout, ""))
@plugin.run
@plugin.languages[:php][:builddate].should eql("Aug 30 2013 04:30:30")
end
Expand Down

0 comments on commit abcaf72

Please sign in to comment.