Created
October 21, 2008 02:29
-
-
Save cilquirm/18237 to your computer and use it in GitHub Desktop.
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 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