Updated testing syntax to rspec 3.x
Removed call to deprecated API plugin#activity=