Skip to content

Instantly share code, notes, and snippets.

@mostlyobvious
Created January 14, 2012 13:35
Show Gist options
  • Save mostlyobvious/1611436 to your computer and use it in GitHub Desktop.
Save mostlyobvious/1611436 to your computer and use it in GitHub Desktop.
require "spec_helper"
resource "Errors" do
get "/errors/:id" do
parameter :id, "Error ID"
let(:error) { OpenStruct.new(id: 1) }
let(:id) { error.id }
example "Get a single error" do
do_request do |status, headers, body|
# ...
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment