为什么世界上这需要20秒?它几乎没有做任何事......
我正在使用Rails 3.0.7
factory_girl_rails(1.1.0)
rspec(2.6.0)
FactoryGirl.define do
factory :user do
factory :admin_one do
initial_business_name "Spa"
email "mac@test.com"
subdomain "test"
end
end
end
require 'spec_helper'
describe StaffMembersController do
before (:each) do
@user = Factory(:admin_one)
end
shared_examples_for "index vars" do
it "sets @new_vacation" do
end
it "assigns @all_services" do
end
it "assigns @has_hit_staff_limit" do
end
end
describe "GET index" do
it_behaves_like "index vars"
end
end
Finished in 20.86 seconds
3 examples, 0 failures