Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

implement ok? spec helper

  • Loading branch information...
commit 56c5507d352e9ad992ba2b477655e69e1919f7d9 1 parent 835d90f
@zzak authored
Showing with 6 additions and 2 deletions.
  1. +2 −2 spec/glorify_spec.rb
  2. +4 −0 spec/spec_helper.rb
View
4 spec/glorify_spec.rb
@@ -12,7 +12,7 @@
end
expected = "<h1>a sip of glory</h1>"
get('/')
- assert last_response.ok?
+ assert ok?
assert_equal expected, body
end
@@ -22,7 +22,7 @@
end
expected = "<p><code>puts &quot;Hello, world!&quot;</code></p>"
get('/')
- assert last_response.ok?
+ assert ok?
assert_equal expected, body
end
View
4 spec/spec_helper.rb
@@ -26,4 +26,8 @@ def app
def body
last_response.body.gsub(/\n/,'')
end
+
+ def ok?
+ last_response.ok?
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.