Entries from 2013-07-09 to 1 day

File upload test on Rails3 + RSpec + json_spec

require 'spec_helper' describe PhotosController do before do @file = Rack::Test::UploadedFile.new('spec/fixtures/keiko.jpg', 'image/jpg') end it "should get index" do request.accept = "application/json" get 'index' response.should be_succe…