在这段代码中,我试图打开一个与当前页面位于同一文件夹中的文件(skills.xml),但它返回null。
我做错了什么?
require 'rails_helper'
require 'spec_helper'
describe CompetitionsController do
before :each do
@fake_c = mock(Competition, :competition_id => 1, :competition_name => 'one', :competition_des => 'any')
end
describe 'create' do
it 'should create new competition' do
#CompetitionsController.stub(:create).and_return(mock('Competition'))
#post :create, {:id=>"1"}
end
end
end