Skip to content

Commit

Permalink
fix failing examples in UI spec
Browse files Browse the repository at this point in the history
but they recently started to fail. hpricot upgrade? ruby? weird.
  • Loading branch information
sr committed Sep 4, 2008
1 parent bf126e1 commit ed5019f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions spec/ui_spec.rb
Expand Up @@ -152,12 +152,12 @@ def provide_valid_credentials!
it "should render a form that posts back to '/'" do
provide_valid_credentials!
get_it "/new"
body.should have_tag("form[@action=/][@method=post]") do |form|
form.should have_tag("input.text#project_name[@name=name][@type=text][@value='']")
form.should have_tag("input.text#project_repository[@name=uri][@type=text][@value='']")
form.should have_tag("input.text#project_branch[@name=branch][@type=text][@value='master']")
form.should have_tag("input.checkbox#project_public[@name=public][@type=checkbox][@checked=checked]")
form.should have_tag("textarea#project_build_script[@name=command]", /rake/)
body.should have_tag("form[@action='/'],@method='post']") do |form|
form.should have_tag("input.text#project_name[@name='name'][@type='text'][@value='']")
form.should have_tag("input.text#project_repository[@name='uri'][@type='text'][@value='']")
form.should have_tag("input.text#project_branch[@name='branch'][@type='text'][@value='master']")
form.should have_tag("input.checkbox#project_public[@name='public'][@type='checkbox'][@checked='checked']")
form.should have_tag("textarea#project_build_script[@name='command']", /rake/)
end
end

Expand Down Expand Up @@ -224,8 +224,8 @@ def provide_valid_credentials!

it "should have a form to create a new build" do
get_it "/integrity"
body.should have_tag("form.blank_slate[@action=/integrity/builds][@method=post]") do |form|
form.should have_tag("button[@type=submit]", /manual build/)
body.should have_tag("form.blank_slate[@action='/integrity/builds'][@method='post']") do |form|
form.should have_tag("button[@type='submit']", /manual build/)
end
end
end
Expand Down Expand Up @@ -267,8 +267,8 @@ def provide_valid_credentials!

it "should have a form to create a new build" do
get_it "/integrity"
body.should have_tag("form[@action=/integrity/builds][@method=post]") do |form|
form.should have_tag("button[@type=submit]", /manual build/i)
body.should have_tag("form[@action='/integrity/builds'][@method='post']") do |form|
form.should have_tag("button[@type='submit']", /manual build/i)
end
end

Expand Down Expand Up @@ -335,14 +335,14 @@ def provide_valid_credentials!
it "should render the form pointed at the projects permalink" do
provide_valid_credentials!
get_it "/integrity/edit"
body.should have_tag("form[@action=/integrity][@method=post]") do |form|
form.should have_tag("input[@name=_method][@type=hidden][@value=put]")
body.should have_tag("form[@action='/integrity'][@method='post']") do |form|
form.should have_tag("input[@name='_method'][@type='hidden'][@value='put']")

form.should have_tag("input.text#project_name[@name=name][@type=text][@value='Integrity']")
form.should have_tag("input.text#project_repository[@name=uri][@type=text][@value='git://github.com/foca/integrity.git']")
form.should have_tag("input.text#project_branch[@name=branch][@type=text][@value='master']")
form.should have_tag("input.checkbox#project_public[@name=public][@type=checkbox][@checked=checked]")
form.should have_tag("textarea#project_build_script[@name=command]", /rake/)
form.should have_tag("input.text#project_name[@name='name'][@type='text'][@value='Integrity']")
form.should have_tag("input.text#project_repository[@name='uri'][@type='text'][@value='git://github.com/foca/integrity.git']")
form.should have_tag("input.text#project_branch[@name='branch'][@type='text'][@value='master']")
form.should have_tag("input.checkbox#project_public[@name='public'][@type='checkbox'][@checked='checked']")
form.should have_tag("textarea#project_build_script[@name='command']", /rake/)
end
end

Expand Down

0 comments on commit ed5019f

Please sign in to comment.