Sha256: bfae314013ea0f8f7264eb004fd4eb5ff9e33bc7d94ee16edca1aee15f372833
Contents?: true
Size: 427 Bytes
Versions: 164
Compression:
Stored size: 427 Bytes
Contents
# Example: # describe PostsController, type: :controller do # it "index returns a success response" do # get '/posts' # expect(response.status).to eq 200 # pp response.body # end # # it "show returns a success response" do # Post.create(id: 1) unless Post.find_by(id: 1) # TODO: set up factory_bot # get '/posts/:id', id: 1 # expect(response.status).to eq 200 # pp response.body # end # end
Version data entries
164 entries across 164 versions & 4 rubygems