Skip to content

Commit

Permalink
spec for 63864b3 - display push url on project editing view [integrit…
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Oct 29, 2008
1 parent 5afabc3 commit 4a6119b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions spec/ui_spec.rb
Expand Up @@ -369,6 +369,12 @@ def enable_basic_auth!
status.should == 200
end

it "should require authentication" do
enable_basic_auth!
get_it "/integrity/edit"
status.should == 401
end

it 'should be 404 if unknown project' do
Project.stub!(:first).and_return(nil)
get_it '/integrity/edit'
Expand All @@ -388,10 +394,10 @@ def enable_basic_auth!
end
end

it "should require authentication" do
enable_basic_auth!
get_it "/integrity/edit"
status.should == 401
it 'should display the push URL' do
get_it '/integrity/edit'
body.should have_tag('h2', 'Push URL')
body.should have_tag('input#push_url[@value="/integrity/push"]')
end
end

Expand Down

0 comments on commit 4a6119b

Please sign in to comment.