rspec-rails 2.0.0.beta.2 → 2.0.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,2 @@
1
1
  tmp
2
2
  pkg
3
- *.gemspec
@@ -27,7 +27,7 @@ Configure:
27
27
 
28
28
  Add this line to the Gemfile:
29
29
 
30
- gem "rspec-rails", ">= 2.0.0.a9"
30
+ gem "rspec-rails", ">= 2.0.0.beta.1"
31
31
 
32
32
  This will expose generators, including rspec:install. Now you can run:
33
33
 
data/Rakefile CHANGED
@@ -40,6 +40,13 @@ rescue LoadError
40
40
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
41
41
  end
42
42
 
43
+ namespace :gem do
44
+ desc "push to gemcutter"
45
+ task :push => :build do
46
+ system "gem push pkg/rspec-rails-#{Rspec::Rails::Version::STRING}.gem"
47
+ end
48
+ end
49
+
43
50
  namespace :generate do
44
51
  desc "generate a fresh app with rspec installed"
45
52
  task :app => :clobber_app do |t|
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.beta.2
1
+ 2.0.0.beta.3
@@ -1,8 +1,5 @@
1
1
  $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
2
2
  require 'rspec/rails/version'
3
- # This needs to be installed on the system, as well as all of its rspec-2 deps
4
- # - would be nicer if we could source them from the <repo>/pkg dirs
5
- gem 'rspec-rails', :path => File.expand_path('../../../', __FILE__)
6
3
 
7
- generate('rspec:install')
4
+ gem 'rspec-rails', :path => File.expand_path('../../../', __FILE__)
8
5
 
@@ -4,17 +4,11 @@ ENV["RAILS_ENV"] ||= 'test'
4
4
  require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
5
5
  require 'rspec/rails'
6
6
 
7
-
8
7
  # Requires supporting files with custom matchers and macros, etc,
9
8
  # in ./support/ and its subdirectories.
10
9
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
11
10
 
12
11
  Rspec.configure do |config|
13
- # Remove this line if you don't want Rspec's should and should_not
14
- # methods or matchers
15
- require 'rspec/expectations'
16
- config.include Rspec::Matchers
17
-
18
12
  # == Mock Framework
19
13
  #
20
14
  # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
@@ -23,35 +17,4 @@ Rspec.configure do |config|
23
17
  # config.mock_with :flexmock
24
18
  # config.mock_with :rr
25
19
  config.mock_with :rspec
26
-
27
- # == Fixtures
28
- #
29
- # If you're not using ActiveRecord you should remove these
30
- # lines, delete config/database.yml and disable :active_record
31
- # in your config/boot.rb
32
- #
33
- # config.use_transactional_fixtures = true
34
- # config.use_instantiated_fixtures = false
35
- # config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
36
- #
37
- # You can declare fixtures for each example_group like this:
38
- # describe "...." do
39
- # fixtures :table_a, :table_b
40
- #
41
- # Alternatively, if you prefer to declare them only once, you can
42
- # do so right here. Just uncomment the next line and replace the fixture
43
- # names with your fixtures.
44
- #
45
- # config.global_fixtures = :table_a, :table_b
46
- #
47
- # If you declare global fixtures, be aware that they will be declared
48
- # for all of your examples, even those that don't use them.
49
- #
50
- # You can also declare which fixtures to use (for example fixtures for test/fixtures):
51
- #
52
- # config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
53
- #
54
- # == Notes
55
- #
56
- # For more information take a look at Rspec::Core::Configuration
57
20
  end
@@ -1,6 +1,14 @@
1
1
  require 'action_dispatch'
2
2
  require 'webrat'
3
3
 
4
+ # Preliminary documentation (more to come ....):
5
+ #
6
+ # allow_forgery_protection is set to false
7
+ # - you can set it to true in a before(:each) block
8
+ # if you have a specific example that needs it, but
9
+ # be sure to restore it to false (or supply tokens
10
+ # to all of your example requests)
11
+
4
12
  module ControllerExampleGroupBehaviour
5
13
  include ActionDispatch::Assertions
6
14
  include ActionDispatch::Integration::Runner
@@ -11,6 +19,7 @@ module ControllerExampleGroupBehaviour
11
19
  def self.included(mod)
12
20
  mod.before do
13
21
  @_result = Struct.new(:add_assertion).new
22
+ ActionController::Base.allow_forgery_protection = false
14
23
  end
15
24
  end
16
25
 
@@ -0,0 +1,105 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{rspec-rails}
8
+ s.version = "2.0.0.beta.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["David Chelimsky", "Chad Humphries"]
12
+ s.date = %q{2010-03-08}
13
+ s.description = %q{Rspec-2 for Rails-3}
14
+ s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "README.markdown"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ "README.markdown",
21
+ "Rakefile",
22
+ "VERSION",
23
+ "example_app_template.rb",
24
+ "lib/generators/rspec.rb",
25
+ "lib/generators/rspec/controller/controller_generator.rb",
26
+ "lib/generators/rspec/controller/templates/controller_spec.rb",
27
+ "lib/generators/rspec/controller/templates/view_spec.rb",
28
+ "lib/generators/rspec/helper/helper_generator.rb",
29
+ "lib/generators/rspec/helper/templates/helper_spec.rb",
30
+ "lib/generators/rspec/install/install_generator.rb",
31
+ "lib/generators/rspec/install/templates/config/initializers/rspec_generator.rb.tt",
32
+ "lib/generators/rspec/install/templates/lib/tasks/rspec.rake",
33
+ "lib/generators/rspec/install/templates/spec/spec.opts",
34
+ "lib/generators/rspec/install/templates/spec/spec_helper.rb",
35
+ "lib/generators/rspec/integration/integration_generator.rb",
36
+ "lib/generators/rspec/integration/templates/request_spec.rb",
37
+ "lib/generators/rspec/mailer/mailer_generator.rb",
38
+ "lib/generators/rspec/mailer/templates/fixture",
39
+ "lib/generators/rspec/mailer/templates/mailer_spec.rb",
40
+ "lib/generators/rspec/model/model_generator.rb",
41
+ "lib/generators/rspec/model/templates/fixtures.yml",
42
+ "lib/generators/rspec/model/templates/model_spec.rb",
43
+ "lib/generators/rspec/observer/observer_generator.rb",
44
+ "lib/generators/rspec/observer/templates/observer_spec.rb",
45
+ "lib/generators/rspec/scaffold/scaffold_generator.rb",
46
+ "lib/generators/rspec/scaffold/templates/controller_spec.rb",
47
+ "lib/generators/rspec/scaffold/templates/edit_spec.rb",
48
+ "lib/generators/rspec/scaffold/templates/index_spec.rb",
49
+ "lib/generators/rspec/scaffold/templates/new_spec.rb",
50
+ "lib/generators/rspec/scaffold/templates/routing_spec.rb",
51
+ "lib/generators/rspec/scaffold/templates/show_spec.rb",
52
+ "lib/generators/rspec/view/templates/view_spec.rb",
53
+ "lib/generators/rspec/view/view_generator.rb",
54
+ "lib/rspec-rails.rb",
55
+ "lib/rspec/rails.rb",
56
+ "lib/rspec/rails/example.rb",
57
+ "lib/rspec/rails/example/controller_example_group.rb",
58
+ "lib/rspec/rails/example/mailer_example_group.rb",
59
+ "lib/rspec/rails/example/request_example_group.rb",
60
+ "lib/rspec/rails/example/view_example_group.rb",
61
+ "lib/rspec/rails/matchers.rb",
62
+ "lib/rspec/rails/mocks.rb",
63
+ "lib/rspec/rails/transactional_database_support.rb",
64
+ "lib/rspec/rails/version.rb",
65
+ "rspec-rails.gemspec",
66
+ "templates/generate_stuff.rb",
67
+ "templates/run_specs.rb"
68
+ ]
69
+ s.homepage = %q{http://github.com/rspec/rspec-rails}
70
+ s.post_install_message = %q{**************************************************
71
+
72
+ Thank you for installing rspec-rails-2.0.0.beta.3!
73
+
74
+ This version of rspec-rails only works with
75
+ versions of rails >= 3.0.0.pre.
76
+
77
+ This is beta software. If you are looking
78
+ for a supported production release, please
79
+ "gem install rspec-rails" (without --pre).
80
+
81
+ **************************************************
82
+ }
83
+ s.rdoc_options = ["--charset=UTF-8"]
84
+ s.require_paths = ["lib"]
85
+ s.rubyforge_project = %q{rspec}
86
+ s.rubygems_version = %q{1.3.6}
87
+ s.summary = %q{rspec-rails-2.0.0.beta.3}
88
+
89
+ if s.respond_to? :specification_version then
90
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
91
+ s.specification_version = 3
92
+
93
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
94
+ s.add_runtime_dependency(%q<rspec>, ["= 2.0.0.beta.3"])
95
+ s.add_runtime_dependency(%q<webrat>, [">= 0.7.0"])
96
+ else
97
+ s.add_dependency(%q<rspec>, ["= 2.0.0.beta.3"])
98
+ s.add_dependency(%q<webrat>, [">= 0.7.0"])
99
+ end
100
+ else
101
+ s.add_dependency(%q<rspec>, ["= 2.0.0.beta.3"])
102
+ s.add_dependency(%q<webrat>, [">= 0.7.0"])
103
+ end
104
+ end
105
+
@@ -1,7 +1,8 @@
1
+ generate('rspec:install')
1
2
  generate('controller wombats index')
2
3
  generate('integration_test widgets')
3
4
  generate('mailer Notifications signup')
4
5
  generate('model thing name:string')
5
6
  generate('observer widget')
6
- generate('scaffold widgets name:string')
7
+ generate('scaffold widget name:string')
7
8
 
metadata CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
7
7
  - 0
8
8
  - 0
9
9
  - beta
10
- - 2
11
- version: 2.0.0.beta.2
10
+ - 3
11
+ version: 2.0.0.beta.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - David Chelimsky
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-03-04 00:00:00 -06:00
20
+ date: 2010-03-08 00:00:00 -06:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -32,8 +32,8 @@ dependencies:
32
32
  - 0
33
33
  - 0
34
34
  - beta
35
- - 2
36
- version: 2.0.0.beta.2
35
+ - 3
36
+ version: 2.0.0.beta.3
37
37
  type: :runtime
38
38
  version_requirements: *id001
39
39
  - !ruby/object:Gem::Dependency
@@ -105,6 +105,7 @@ files:
105
105
  - lib/rspec/rails/mocks.rb
106
106
  - lib/rspec/rails/transactional_database_support.rb
107
107
  - lib/rspec/rails/version.rb
108
+ - rspec-rails.gemspec
108
109
  - templates/generate_stuff.rb
109
110
  - templates/run_specs.rb
110
111
  has_rdoc: true
@@ -114,7 +115,7 @@ licenses: []
114
115
  post_install_message: |
115
116
  **************************************************
116
117
 
117
- Thank you for installing rspec-rails-2.0.0.beta.2!
118
+ Thank you for installing rspec-rails-2.0.0.beta.3!
118
119
 
119
120
  This version of rspec-rails only works with
120
121
  versions of rails >= 3.0.0.pre.
@@ -151,6 +152,6 @@ rubyforge_project: rspec
151
152
  rubygems_version: 1.3.6
152
153
  signing_key:
153
154
  specification_version: 3
154
- summary: rspec-rails-2.0.0.beta.2
155
+ summary: rspec-rails-2.0.0.beta.3
155
156
  test_files: []
156
157