Created
July 14, 2012 20:22
-
-
Save DanCoughlin/3113193 to your computer and use it in GitHub Desktop.
trying to get spec tests for directory controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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