kerryb-fakettp 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.html CHANGED
@@ -1,4 +1,3 @@
1
- <p><!-- README.html is generated from README.textile --></p>
2
1
  <h1>FakeTTP</h1>
3
2
  <h2>Purpose</h2>
4
3
  <p>When you are writing acceptance/integration tests for an application which makes <span class="caps">HTTP</span> requests to a remote application, sometimes you need to be able to test the interactions in different scenarios without talking to a real instance of the remote application.</p>
@@ -55,6 +54,10 @@
55
54
  <p>To have FakeTTP respond to multiple hostnames, create the appropriate hosts entries. If you&#8217;re using name-based virtual hosts in Apache, add a <em>ServerAlias</em> entry to the virtual host config, under the <em>ServerName</em> line, eg:</p>
56
55
  <p><code>ServerAlias foo.com bar.com</code></p>
57
56
  <h2>Change log</h2>
57
+ <p>0.2.1 (17 Mar 2009)</p>
58
+ <ul>
59
+ <li>Fixed issue where rspec matchers weren&#8217;t available to expectations</li>
60
+ </ul>
58
61
  <p>0.2 (14 Mar 2009)</p>
59
62
  <ul>
60
63
  <li>Complete rewrite, with tests and classes and stuff this time.</li>
@@ -2,6 +2,10 @@ require 'fakettp/expectation'
2
2
 
3
3
  module Fakettp
4
4
  module ExpectationHelper
5
+ def self.included(cls)
6
+ cls.send :include, Spec::Matchers
7
+ end
8
+
5
9
  def expect label
6
10
  begin
7
11
  yield
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kerryb-fakettp
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.2"
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kerry Buckley
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-14 00:00:00 -07:00
12
+ date: 2009-03-17 00:00:00 -07:00
13
13
  default_executable: fakettp
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency