Skip to content

Instantly share code, notes, and snippets.

@cilquirm
Created October 21, 2008 02:29
Show Gist options
  • Save cilquirm/18237 to your computer and use it in GitHub Desktop.
Save cilquirm/18237 to your computer and use it in GitHub Desktop.
require File.join(File.dirname(__FILE__), "..", 'spec_helper.rb')
given "logged in" do
User.stub!(:authenticate).and_return(User.new())
response = request(url(:perform_login), :params => { :login => 'xxx', :password => 'xxx' } )
end
describe "groups controller" do
describe "new group", :given => "logged in" do
it "should show the form" do
@response = request(resource(:groups, :new))
@response.should be_successful
@response.body.to_s.should have_tag(:form, :id => 'new-group')
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment