chicago 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
data/chicago.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{chicago}
8
- s.version = "0.3.7"
8
+ s.version = "0.3.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin 'Gus' Knowlden"]
12
- s.date = %q{2009-12-14}
12
+ s.date = %q{2009-12-21}
13
13
  s.description = %q{Sinatra runtime and testing extensions used commonly by Thumblemonks. For example, :json_response, which turns an object into JSON and sets the content-type appropriately.}
14
14
  s.email = %q{gus@gusg.us}
15
15
  s.extra_rdoc_files = [
@@ -12,7 +12,11 @@ module Chicago
12
12
  end
13
13
 
14
14
  def asserts_response_body(expected)
15
- asserts("response body matches #{expected.inspect}") { last_response.body }.matches(expected)
15
+ if (expected.kind_of?(Regexp))
16
+ asserts("response body matches #{expected.inspect}") { last_response.body }.matches(expected)
17
+ else
18
+ asserts("response body is exactly #{expected.inspect}") { last_response.body }.equals(expected)
19
+ end
16
20
  end
17
21
 
18
22
  def asserts_location(expected_path)
@@ -42,7 +42,7 @@ context "Application Test:" do
42
42
 
43
43
  context "getting obvious views" do
44
44
  setup { get '/baz' }
45
- asserts_response_body "Whatever man. That's just like, your opinion."
45
+ asserts_response_body "Whatever man. That's just like, your opinion.\n"
46
46
  end # getting obvious views
47
47
 
48
48
  end
@@ -105,7 +105,7 @@ context "Helpers Test:" do
105
105
  get '/foo'
106
106
  end
107
107
 
108
- asserts_response_body %Q[<a href="/bar">foo</a>]
108
+ asserts_response_body %Q[<a href="/bar">foo</a>\n]
109
109
  end # for plain old foo
110
110
 
111
111
  context "with options" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chicago
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin 'Gus' Knowlden
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-14 00:00:00 -06:00
12
+ date: 2009-12-21 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency