我想将一些ERB编译成符合我的规范的灯具内的CSV文件。下面是CSV: (规格/夹具/文件/ song_info.csv.erb) song id, song_title
<%= song.id %>, Fun Title
在我的测试,我首先创建一首歌,所以我可以插它的id到夹具,然后负载CSV。 describe "#update" do
let(:song) { Factor
我已经开始与一个简单的测试: class UserTest < ActiveSupport::TestCase
test 'should not create user without email' do
user = User.new
assert_not user.save
end
end
和Rails自动生成的一些灯具: one:
em