Zeus is great spork-like tool for forking the rake enviroment for better performance. It's great for rspec even faster than spork with ndb setup.
#install Zeus
gem install zeus
#install Zeus for guard
context "when created" do | |
it "tracked into activities " do | |
expect{FactoryGirl.create(:drink_report)}.to change(Activity.count).by(1) | |
end | |
end | |
error : Failure/Error: expect{FactoryGirl.create(:drink_report)}.to change(Activity.count).by(1) | |
TypeError: | |
nil is not a symbol | |
This gist assumes:
GitHub:Gist GitHub:Gist | |
public | |
mdigital / gist:2907430 | |
.bash_profile including set_title and git prompt | |
Gist Detail | |
Revisions 1 |
<?php | |
class HomePage extends Page{ | |
public static $db = array( | |
'bucket1_title'=>'Text', | |
'bucket2_title'=>'Text', | |
'bucket3_title'=>'Text', |
###Magento DPS Problem | |
#problem with Magento DPS | |
#Shipping address within NZ works fine. Shipping outside NZ using DPS payment failed even though the credit card transaction has been approved. | |
# changed the rounding from 2 digits to 4 digits for correcting the rounding amomunt. but seesm it break on the DPS default 2 digits rounding seting. | |
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |
if ($this->ReList == 1 && $this->PAltID==""){ | |
// if the relist button been clicked at same time no PALT saved; | |
$this->AltID = (isset($this->vin))? substr($this->vin,-6).rand(100,999) : "Error"; | |
$this->PAltID=$this->AltID; | |
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
public function signup($data,$form){ | |
Debug::show($data); | |
//get the Rego and Password | |
$rego=$data['RegoNo']; | |
$pwd=$data['Password']; | |
$flag=$this->validuser($rego,$pwd); | |
Debug::show($flag); | |