teriyaki 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,12 @@
1
1
  = Teriyaki
2
2
 
3
- Automatically imports *_path definitions from config/routes.rb for acceptance testing
3
+ Require teriyaki gem in the Gemfile.
4
+
5
+ gem 'teriyaki', :group => :test
6
+
7
+ And bundle.
8
+
9
+ % bundle
4
10
 
5
11
  == Note on Patches/Pull Requests
6
12
 
@@ -17,11 +23,7 @@ Automatically imports *_path definitions from config/routes.rb for acceptance te
17
23
 
18
24
  == Usage
19
25
 
20
- Add this simple line to your spec/acceptance/acceptance_helper.rb
21
-
22
- require 'teriyaki/steak'
23
-
24
- This will automatically add *_path helper methods for the acceptance testing context.
26
+ This will automatically add url_helper methods from config/routes.rb for the acceptance testing context.
25
27
 
26
28
  No need to touch paths.rb anymore!
27
29
 
data/Rakefile CHANGED
@@ -5,12 +5,12 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = 'teriyaki'
8
- gem.summary = %Q{Automatically imports *_path definitions from config/routes.rb for acceptance testing}
8
+ gem.summary = %Q{Automatically imports url_helper methods from config/routes.rb for acceptance testing}
9
9
  gem.description = %Q{You don't need to write paths.rb manually anymore!}
10
10
  gem.email = 'ronnie@dio.jp'
11
11
  gem.homepage = 'http://github.com/amatsuda/teriyaki'
12
12
  gem.authors = ['Akira Matsuda']
13
- gem.add_development_dependency 'rspec', '>= 1.2.9'
13
+ gem.add_development_dependency 'rspec', '>= 2.0.0'
14
14
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
15
  end
16
16
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 2.0.0
@@ -0,0 +1,3 @@
1
+ ActiveSupport.on_load(:after_initialize) do
2
+ RSpec.configuration.include Rails.application.routes.url_helpers, :type => :acceptance
3
+ end
@@ -1 +1 @@
1
- RSpec.configuration.include Rails.application.routes.url_helpers, :type => :acceptance
1
+ # this file exists just for compatibility
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{teriyaki}
8
- s.version = "1.0.0"
8
+ s.version = "2.0.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Akira Matsuda"]
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
22
22
  "README.rdoc",
23
23
  "Rakefile",
24
24
  "VERSION",
25
+ "lib/teriyaki.rb",
25
26
  "lib/teriyaki/steak.rb",
26
27
  "spec/spec.opts",
27
28
  "spec/spec_helper.rb",
@@ -31,7 +32,7 @@ Gem::Specification.new do |s|
31
32
  s.homepage = %q{http://github.com/amatsuda/teriyaki}
32
33
  s.require_paths = ["lib"]
33
34
  s.rubygems_version = %q{1.3.7}
34
- s.summary = %q{Automatically imports *_path definitions from config/routes.rb for acceptance testing}
35
+ s.summary = %q{Automatically imports url_helper methods from config/routes.rb for acceptance testing}
35
36
  s.test_files = [
36
37
  "spec/spec_helper.rb",
37
38
  "spec/teriyaki_spec.rb"
@@ -42,12 +43,12 @@ Gem::Specification.new do |s|
42
43
  s.specification_version = 3
43
44
 
44
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
46
+ s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
46
47
  else
47
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
48
+ s.add_dependency(%q<rspec>, [">= 2.0.0"])
48
49
  end
49
50
  else
50
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
51
+ s.add_dependency(%q<rspec>, [">= 2.0.0"])
51
52
  end
52
53
  end
53
54
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teriyaki
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
- - 1
7
+ - 2
8
8
  - 0
9
9
  - 0
10
- version: 1.0.0
10
+ version: 2.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Akira Matsuda
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 13
29
+ hash: 15
30
30
  segments:
31
- - 1
32
31
  - 2
33
- - 9
34
- version: 1.2.9
32
+ - 0
33
+ - 0
34
+ version: 2.0.0
35
35
  type: :development
36
36
  version_requirements: *id001
37
37
  description: You don't need to write paths.rb manually anymore!
@@ -49,6 +49,7 @@ files:
49
49
  - README.rdoc
50
50
  - Rakefile
51
51
  - VERSION
52
+ - lib/teriyaki.rb
52
53
  - lib/teriyaki/steak.rb
53
54
  - spec/spec.opts
54
55
  - spec/spec_helper.rb
@@ -87,7 +88,7 @@ rubyforge_project:
87
88
  rubygems_version: 1.3.7
88
89
  signing_key:
89
90
  specification_version: 3
90
- summary: Automatically imports *_path definitions from config/routes.rb for acceptance testing
91
+ summary: Automatically imports url_helper methods from config/routes.rb for acceptance testing
91
92
  test_files:
92
93
  - spec/spec_helper.rb
93
94
  - spec/teriyaki_spec.rb