brightbox-rspec-rails-ext 1.6.1 → 1.6.2

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/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ v1.6.2. Changed how we match the status header
1
2
  v1.6.1. Added associated_model builder
2
3
  v1.6.0. Pushed a version that actually works (oops, sorry about that)
3
4
  v1.005. Added invalid_model
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'echoe'
2
2
  Echoe.new('rspec-rails-ext') do | gem |
3
- gem.author = 'Rahoul Baruah and Caius Durling'
3
+ gem.author = ["Rahoul Baruah", "Caius Durling"]
4
4
  gem.email = 'support@brightbox.co.uk'
5
5
  gem.summary = 'Helpers for prettying up your RSpec-Rails specifications'
6
6
  gem.url = 'http://github.com/brightbox/rspec-rails-extensions/tree/master'
data/lib/responses.rb CHANGED
@@ -42,7 +42,7 @@ module ResponseMatchers
42
42
 
43
43
  # Does the given target object match the required status code?
44
44
  def matches? target
45
- target.headers['Status'] == @status_code
45
+ target.status == @status_code
46
46
  end
47
47
 
48
48
  # What do we tell the user when it fails?
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rspec-rails-ext}
5
- s.version = "1.6.1"
5
+ s.version = "1.6.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Rahoul Baruah and Caius Durling"]
9
- s.date = %q{2009-02-23}
8
+ s.authors = ["Rahoul Baruah, Caius Durling"]
9
+ s.date = %q{2009-03-03}
10
10
  s.description = %q{Helpers for prettying up your RSpec-Rails specifications}
11
11
  s.email = %q{support@brightbox.co.uk}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/controller_example_group.rb", "lib/mocks.rb", "lib/responses.rb", "lib/rspec_rails_extensions.rb", "README.rdoc"]
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightbox-rspec-rails-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
- - Rahoul Baruah and Caius Durling
7
+ - Rahoul Baruah, Caius Durling
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-23 00:00:00 -08:00
12
+ date: 2009-03-03 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency