To run specs without perf tests: rake spec SPEC_OPTS="--tag ~performance"

This commit is contained in:
Sarah Mei 2011-02-20 14:40:51 -08:00
parent ab706f4127
commit 26779889d0
2 changed files with 3 additions and 3 deletions

View file

@ -110,7 +110,7 @@ describe AspectsController do
end
end
context 'performance' do
context 'performance', :performance => true do
before do
require 'benchmark'
@posts = []
@ -177,7 +177,7 @@ describe AspectsController do
get :manage
response.should be_success
end
it "performs reasonably" do
it "performs reasonably", :performance => true do
require 'benchmark'
8.times do |n|
aspect = @user.aspects.create(:name => "aspect#{n}")

View file

@ -52,7 +52,7 @@ describe PeopleController do
end
end
describe "#show performance" do
describe "#show performance", :performance => true do
before do
require 'benchmark'
@posts = []