Skip to content

Commit

Permalink
Added spec for the parking controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed May 13, 2010
1 parent 5575227 commit 3cfcb84
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/controllers/parking_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

class ParkingController < ActionController::Base
end

describe ParkingController do
describe "GET, index" do
context "requesting a list of tickets" do
it "should be able to retrieve all tickets with a given tag"
end

context "a successful search has been requested" do
it "should display a list of open tickets"
end

context "no tickets where found" do
it "should return an empty list"
it "should display a flash message"
end
end
end

0 comments on commit 3cfcb84

Please sign in to comment.