describe"#publish!"dolet(:user){FactoryGirl.create(:user)}let(:course){FactoryGirl.create(:course,:user=>user)}it"will be publsihed"doallow(course.user).toreceive(:send_welcome_email!)course.publish!expect(course).tobe_publishedendend