Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

generator fixes

  • Loading branch information...
commit 8d0199ba14db8b05b0781e0169b191f384e30131 1 parent 6ee5fb8
@dchelimsky dchelimsky authored
View
1  README
@@ -1 +0,0 @@
-RSpec-2 for Rails-3
View
50 README.markdown
@@ -0,0 +1,50 @@
+RSpec-2 for Rails-3
+
+### Backwards compatibility
+
+None. This is a rewrite of the rspec-rails extension designed to work
+with rails-3.x and rspec-2.x. It will not work with older versions of
+either rspec or rails.
+
+### Current state
+
+Currently in super-pre-alpha state - explore at your own risk!
+
+Here's what works right now:
+
+ git clone git://github.com/rspec/rspec-dev
+ cd rspec-dev
+ rake git:clone
+ rake gem:build
+ rake gem:install
+
+This installs the following gems:
+
+* rspec
+* rspec-core
+* rspec-expectations
+* rspec-mocks
+* rspec-rails
+
+### What works
+
+Currently supported:
+
+* controller specs in spec/controllers
+ * no view isolation yet
+* model specs in spec/models
+* request specs in spec/requests
+ * these wrap rails integration tests
+
+### Known issues
+
+None of the following are supported yet (but will be soon):
+
+* rails-specific matchers
+* isolation from views in controller specs
+* view specs of any kind
+* helper specs of any kind
+
+
+
+
View
3  lib/generators/rspec/install/install_generator.rb
@@ -17,7 +17,8 @@ def copy_lib_files
end
def copy_script_files
- directory 'script'
+ directory "script"
+ chmod "script/rspec", 0755, :verbose => false
end
def copy_spec_files
View
2  lib/generators/rspec/integration/integration_generator.rb
@@ -4,7 +4,7 @@ module Rspec
module Generators
class IntegrationGenerator < Base
def create_integration_file
- template 'integration_spec.rb',
+ template 'request_spec.rb',
File.join('spec/requests', class_path, "#{table_name}_spec.rb")
end
end
View
0  ...integration/templates/integration_spec.rb → ...pec/integration/templates/request_spec.rb
File renamed without changes
View
4 rspec-rails.gemspec
@@ -13,11 +13,10 @@ Gem::Specification.new do |s|
s.description = %q{RSpec Rails}
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
s.extra_rdoc_files = [
- "README"
+ "README.markdown"
]
s.files = [
".gitignore",
- "README",
"Rakefile",
"VERSION",
"VERSION.yml",
@@ -35,7 +34,6 @@ Gem::Specification.new do |s|
"lib/generators/rspec/install/templates/spec/spec.opts",
"lib/generators/rspec/install/templates/spec/spec_helper.rb",
"lib/generators/rspec/integration/integration_generator.rb",
- "lib/generators/rspec/integration/templates/integration_spec.rb",
"lib/generators/rspec/mailer/mailer_generator.rb",
"lib/generators/rspec/mailer/templates/fixture",
"lib/generators/rspec/mailer/templates/mailer_spec.rb",
Please sign in to comment.
Something went wrong with that request. Please try again.