before(:all) replaced with before(:each) temporarily for RSpec 3 compliance