Skip to content

Commit

Permalink
restfulify build manual building [integrity#4 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Jul 20, 2008
1 parent 31813ae commit 6fe23ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/integrity/ui/web.rb
Expand Up @@ -52,7 +52,7 @@
show :new, :title => ["projects", @project.permalink, "edit"]
end

post "/:project/build" do
post "/:project/builds" do
@project = Project.first(:permalink => params[:project])
@project.build
redirect project_url(@project)
Expand Down
4 changes: 2 additions & 2 deletions spec/ui/web_spec.rb
Expand Up @@ -229,12 +229,12 @@ def mock_project(messages={})
it "should build the project" do
Project.stub!(:first).with(:permalink => "integrity").and_return mock_project
mock_project.should_receive(:build)
post_it "/integrity/build"
post_it "/integrity/builds"
end

it "should redirect back to the project" do
Project.stub!(:first).with(:permalink => "integrity").and_return mock_project
post_it "/integrity/build"
post_it "/integrity/builds"
follow!
status.should == 200
end
Expand Down

0 comments on commit 6fe23ac

Please sign in to comment.