Ruby source code


it "test post" do post = FactoryGirl.create :post end

Snippet


within_file 'test.rb' do with_node type: 'send', receiver: 'FactoryGirl', message: 'create' do replace_with "create({{arguments}})" end end

Rewritten code