sped up some tests

This commit is contained in:
Hauke Klement
2015-01-30 10:50:44 +01:00
parent 76ceae54b0
commit b08bc8aef2
14 changed files with 65 additions and 46 deletions

View File

@ -61,7 +61,7 @@ describe ErrorsController do
end
describe 'GET #index' do
let!(:errors) { FactoryGirl.create_pair(:error) }
before(:all) { FactoryGirl.create_pair(:error) }
before(:each) { get :index, execution_environment_id: execution_environment.id }
expect_assigns(execution_environment: :execution_environment)