unencumbered 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ _user_creates_vurl_spec.rb_ for example:
27
27
 
28
28
  <pre>
29
29
  <code>
30
- require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
30
+ require File.expand_path('../../spec_helper', __FILE__)
31
31
 
32
32
  Feature "User creates a vurl" do
33
33
  Scenario "creating" do
@@ -68,20 +68,46 @@ _spec_helper.rb_, since it patches RSpec.
68
68
 
69
69
  <pre>
70
70
  <code>
71
- config.gem "unencumbered", :lib => false, :version => '>= 0.x.x'
71
+ config.gem "unencumbered", :lib => false, :version => 'x.x.x'
72
72
  </code>
73
73
  </pre>
74
74
 
75
75
 
76
76
  h3. spec_helper.rb
77
77
 
78
- Meld these lines into your existing _spec/spec_helper.rb_. The _unencumbered_
79
- require needs to be last, since it patches RSpec.
78
+ Meld these lines into your existing _spec/spec_helper.rb_. Note the
79
+ _unencumbered_ require needs to be after your RSpec requires, since it patches
80
+ RSpec.
80
81
 
81
82
  <pre>
82
83
  <code>
83
- require 'webrat'
84
84
  require 'unencumbered'
85
+ require 'webrat'
86
+
87
+ Webrat.configure do |config|
88
+ config.mode = :rails
89
+ end
90
+
91
+ Spec::Runner.configure do |config|
92
+
93
+ [...your other config code...]
94
+
95
+ config.include(Webrat::Matchers, :type => [:integration])
96
+ end
97
+
98
+ class ActionController::Integration::Session; include Spec::Matchers; end
99
+ </code>
100
+ </pre>
101
+
102
+
103
+ h3. spec.opts
104
+
105
+ RSpec's nested format reads nicely. Put this line in your _spec/spec.opts_
106
+ file.
107
+
108
+ <pre>
109
+ <code>
110
+ --format nested
85
111
  </code>
86
112
  </pre>
87
113
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.1.0
@@ -38,21 +38,3 @@ module Spec::Example::ExampleGroupMethods
38
38
  describe("Background #{description}", &blk)
39
39
  end
40
40
  end
41
-
42
- if defined? ActionController::Integration::Session
43
- class ActionController::Integration::Session
44
- include Spec::Matchers
45
- end
46
- end
47
-
48
- if defined? Webrat
49
- Webrat.configure do |config|
50
- config.mode = :rails
51
- end
52
-
53
- if defined? Spec::Runner
54
- Spec::Runner.configure do |config|
55
- config.include(Webrat::Matchers, :type => [:integration])
56
- end
57
- end
58
- end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{unencumbered}
8
- s.version = "0.0.6"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Hashrocket"]
12
- s.date = %q{2009-10-29}
12
+ s.date = %q{2009-11-03}
13
13
  s.description = %q{You got Cucumber in my RSpec!}
14
14
  s.email = %q{info@hashrocket.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unencumbered
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hashrocket
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-29 00:00:00 -04:00
12
+ date: 2009-11-03 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15