Skip to content

Instantly share code, notes, and snippets.

@DanCoughlin
Created July 14, 2012 20:22
Show Gist options
  • Save DanCoughlin/3113193 to your computer and use it in GitHub Desktop.
Save DanCoughlin/3113193 to your computer and use it in GitHub Desktop.
trying to get spec tests for directory controller
require 'spec_helper'
describe DirectoryController do
describe "#user" do
it "should return an empty array for non-existing user" do
get :user, uid:"noone"
response.should == [] #be_empty
end
it "should return a json string for an existing user" do
get :user, uid:"dmc186"
response.should_not be_empty
end
end
describe "#user_attribute" do
it "should return an existing attribute for a user" do
end
it "should return nothing for a non-existing attribute" do
end
end
describe "#user_groups" do
it "should return a users list of groups" do
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment