Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require File.join(File.dirname(__FILE__), '..', 'spec_helper.rb')
- describe Users, "authenticate action via REST" do
- specify "authenticate" do
- dispatch_to(Users, :authenticate, :username => "test", :password => "test)
- controller.status.should == 200
- p controller.body
- end
- end
- describe Users, "authenticate action via REST using routes" do
- specify "authenticate" do
- post("/path_to_login.xml", :username => "test", :password => "test")
- controller.status.should == 200
- end
- end
Add Comment
Please, Sign In to add comment