To run specs without perf tests: rake spec SPEC_OPTS="--tag ~performance"
This commit is contained in:
parent
ab706f4127
commit
26779889d0
2 changed files with 3 additions and 3 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ describe PeopleController do
|
|||
end
|
||||
end
|
||||
|
||||
describe "#show performance" do
|
||||
describe "#show performance", :performance => true do
|
||||
before do
|
||||
require 'benchmark'
|
||||
@posts = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue