Skip to content

Commit

Permalink
updating to rspec and rspec-rails edge because the stories do not run…
Browse files Browse the repository at this point in the history
… on 1.1.4
  • Loading branch information
Sven Fuchs committed Sep 15, 2008
1 parent 53fa376 commit bc2257a
Show file tree
Hide file tree
Showing 191 changed files with 4,074 additions and 2,164 deletions.
3 changes: 3 additions & 0 deletions vendor/plugins/rspec-rails/.gitignore
Expand Up @@ -2,3 +2,6 @@ tmtags
.DS_Store
.emacs-project
*~
pkg
doc
email.txt
21 changes: 0 additions & 21 deletions vendor/plugins/rspec-rails/CHANGES

This file was deleted.

44 changes: 44 additions & 0 deletions vendor/plugins/rspec-rails/History.txt
@@ -0,0 +1,44 @@
=== In Development (git clone git://github.com/dchelimsky/rspec-rails.git)

IMPORTANT: use 'script/autospec' (or just 'autospec' if you have the rspec gem
installed) instead of 'autotest'. We changed the way autotest discovers rspec
so the autotest executable won't automatically load rspec anymore. This allows
rspec to live side by side other spec frameworks without always co-opting
autotest through autotest's discovery mechanism.

ALSO IMPORTANT: Rails v2.1.1 changed assert_select_rjs such that it doesn't
always fail when it should. Please see
http://rails.lighthouseapp.com/projects/8994/tickets/982.

* Generated route specs have shorter names, making it less painful to modify their implementation
* Add conditional so Rails 2.1.0 doesn't warn about cache_template_extensions (patch from James Herdman)
* Fixed stub_model examples to work with Rails 2.1.0 (the code was fine, just the examples needed patching)
* use hoe for build/release
* reworked generated examples for rspec_scaffold - thanks to Mikel Lindsaar and Dan Manges for their feedback
* bye, bye translator
* Added proxy to cookies so you can set them in examples the same way you set them in controllers
* Added script/autospec so you can run autospec without installing the gem
* Support --skip-fixture in the rspec_model generator (patches from Alex Tomlins and Niels Ganser)
* Add mock_model#as_new_record (patch from Zach Dennis)

=== Version 1.1.4

Maintenance release.

* Moved mock_model and stub_model to their own module: Spec::Rails::Mocks
* Setting mock_model object id with stubs hash - patch from Adam Meehan
* Added as_new_record to stub_model e.g. stub_model(Foo).as_new_record
* Improved stub_model such that new_record? does "the right thing"
* Patch from Pat Maddox to get integrate_views to work in nested example groups.
* Patch from Pat Maddox to get controller_name to work in nested example groups.
* Patch from Corey Haines to add include_text matcher
* Added stub_model method which creates a real model instance with :id stubbed and data access prohibited.
* Applied patch from Pat Maddox to handle redirect_to w/ SSL. Closes #320.
* Added #helper and #assigns to helper specs.
* Applied patch from Bryan Helmkamp to tweak format of generated spec.opts to be more obvious. Closes #162.
* Tweaked list of exceptions (ignores) for autotest
* Applied patch from Rick Olson to get rspec_on_rails working with rails edge (>= 8862)
* Applied patch from Wincent Colaiuta to invert sense of "spec --diff". Closes #281.
* Allow any type of render in view specs. Closes #57.
* Applied patch from Ian White to get rspec working with edge rails (8804). Closes #271.
* Applied patch from Jon Strother to have spec_server reload fixtures. Closes #344.
31 changes: 0 additions & 31 deletions vendor/plugins/rspec-rails/MIT-LICENSE

This file was deleted.

151 changes: 151 additions & 0 deletions vendor/plugins/rspec-rails/Manifest.txt
@@ -0,0 +1,151 @@
.gitignore
History.txt
Manifest.txt
README.txt
Rakefile
UPGRADE
generators/rspec/CHANGES
generators/rspec/rspec_generator.rb
generators/rspec/templates/all_stories.rb
generators/rspec/templates/previous_failures.txt
generators/rspec/templates/rcov.opts
generators/rspec/templates/rspec.rake
generators/rspec/templates/script/autospec
generators/rspec/templates/script/spec
generators/rspec/templates/script/spec_server
generators/rspec/templates/spec.opts
generators/rspec/templates/spec_helper.rb
generators/rspec/templates/stories_helper.rb
generators/rspec_controller/USAGE
generators/rspec_controller/rspec_controller_generator.rb
generators/rspec_controller/templates/controller_spec.rb
generators/rspec_controller/templates/helper_spec.rb
generators/rspec_controller/templates/view_spec.rb
generators/rspec_default_values.rb
generators/rspec_model/USAGE
generators/rspec_model/rspec_model_generator.rb
generators/rspec_model/templates/model_spec.rb
generators/rspec_scaffold/rspec_scaffold_generator.rb
generators/rspec_scaffold/templates/controller_spec.rb
generators/rspec_scaffold/templates/edit_erb_spec.rb
generators/rspec_scaffold/templates/helper_spec.rb
generators/rspec_scaffold/templates/index_erb_spec.rb
generators/rspec_scaffold/templates/new_erb_spec.rb
generators/rspec_scaffold/templates/routing_spec.rb
generators/rspec_scaffold/templates/show_erb_spec.rb
init.rb
lib/autotest/discover.rb
lib/autotest/rails_rspec.rb
lib/spec/rails.rb
lib/spec/rails/example.rb
lib/spec/rails/example/assigns_hash_proxy.rb
lib/spec/rails/example/controller_example_group.rb
lib/spec/rails/example/functional_example_group.rb
lib/spec/rails/example/cookies_proxy.rb
lib/spec/rails/example/helper_example_group.rb
lib/spec/rails/example/model_example_group.rb
lib/spec/rails/example/rails_example_group.rb
lib/spec/rails/example/render_observer.rb
lib/spec/rails/example/view_example_group.rb
lib/spec/rails/extensions.rb
lib/spec/rails/extensions/action_controller/base.rb
lib/spec/rails/extensions/action_controller/rescue.rb
lib/spec/rails/extensions/action_controller/test_response.rb
lib/spec/rails/extensions/action_view/base.rb
lib/spec/rails/extensions/active_record/base.rb
lib/spec/rails/extensions/object.rb
lib/spec/rails/extensions/spec/example/configuration.rb
lib/spec/rails/extensions/spec/matchers/have.rb
lib/spec/rails/interop/testcase.rb
lib/spec/rails/matchers.rb
lib/spec/rails/matchers/assert_select.rb
lib/spec/rails/matchers/have_text.rb
lib/spec/rails/matchers/include_text.rb
lib/spec/rails/matchers/redirect_to.rb
lib/spec/rails/matchers/render_template.rb
lib/spec/rails/mocks.rb
lib/spec/rails/story_adapter.rb
lib/spec/rails/version.rb
spec/rails/autotest/mappings_spec.rb
spec/rails/example/assigns_hash_proxy_spec.rb
spec/rails/example/configuration_spec.rb
spec/rails/example/controller_isolation_spec.rb
spec/rails/example/controller_spec_spec.rb
spec/rails/example/cookies_proxy_spec.rb
spec/rails/example/example_group_factory_spec.rb
spec/rails/example/helper_spec_spec.rb
spec/rails/example/model_spec_spec.rb
spec/rails/example/shared_behaviour_spec.rb
spec/rails/example/test_unit_assertion_accessibility_spec.rb
spec/rails/example/view_spec_spec.rb
spec/rails/extensions/action_controller_rescue_action_spec.rb
spec/rails/extensions/action_view_base_spec.rb
spec/rails/extensions/active_record_spec.rb
spec/rails/matchers/assert_select_spec.rb
spec/rails/interop/testcase_spec.rb
spec/rails/matchers/description_generation_spec.rb
spec/rails/matchers/errors_on_spec.rb
spec/rails/matchers/have_text_spec.rb
spec/rails/matchers/include_text_spec.rb
spec/rails/matchers/redirect_to_spec.rb
spec/rails/matchers/render_spec.rb
spec/rails/mocks/ar_classes.rb
spec/rails/mocks/mock_model_spec.rb
spec/rails/mocks/stub_model_spec.rb
spec/rails/sample_modified_fixture.rb
spec/rails/sample_spec.rb
spec/rails/spec_server_spec.rb
spec/rails/spec_spec.rb
spec/rails_suite.rb
spec/spec_helper.rb
spec_resources/controllers/action_view_base_spec_controller.rb
spec_resources/controllers/controller_spec_controller.rb
spec_resources/controllers/redirect_spec_controller.rb
spec_resources/controllers/render_spec_controller.rb
spec_resources/controllers/rjs_spec_controller.rb
spec_resources/helpers/explicit_helper.rb
spec_resources/helpers/more_explicit_helper.rb
spec_resources/helpers/plugin_application_helper.rb
spec_resources/helpers/view_spec_helper.rb
spec_resources/views/controller_spec/_partial.rhtml
spec_resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml
spec_resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml
spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml
spec_resources/views/controller_spec/action_with_errors_in_template.rhtml
spec_resources/views/controller_spec/action_with_template.rhtml
spec_resources/views/render_spec/_a_partial.rhtml
spec_resources/views/render_spec/some_action.js.rjs
spec_resources/views/render_spec/some_action.rhtml
spec_resources/views/render_spec/some_action.rjs
spec_resources/views/rjs_spec/_replacement_partial.rhtml
spec_resources/views/rjs_spec/hide_div.rjs
spec_resources/views/rjs_spec/hide_page_element.rjs
spec_resources/views/rjs_spec/insert_html.rjs
spec_resources/views/rjs_spec/replace.rjs
spec_resources/views/rjs_spec/replace_html.rjs
spec_resources/views/rjs_spec/replace_html_with_partial.rjs
spec_resources/views/rjs_spec/visual_effect.rjs
spec_resources/views/rjs_spec/visual_toggle_effect.rjs
spec_resources/views/tag_spec/no_tags.rhtml
spec_resources/views/tag_spec/single_div_with_no_attributes.rhtml
spec_resources/views/tag_spec/single_div_with_one_attribute.rhtml
spec_resources/views/view_spec/_partial.rhtml
spec_resources/views/view_spec/_partial_used_twice.rhtml
spec_resources/views/view_spec/_partial_with_local_variable.rhtml
spec_resources/views/view_spec/_partial_with_sub_partial.rhtml
spec_resources/views/view_spec/_spacer.rhtml
spec_resources/views/view_spec/accessor.rhtml
spec_resources/views/view_spec/entry_form.rhtml
spec_resources/views/view_spec/explicit_helper.rhtml
spec_resources/views/view_spec/foo/show.rhtml
spec_resources/views/view_spec/implicit_helper.rhtml
spec_resources/views/view_spec/multiple_helpers.rhtml
spec_resources/views/view_spec/template_with_partial.rhtml
spec_resources/views/view_spec/template_with_partial_using_collection.rhtml
spec_resources/views/view_spec/template_with_partial_with_array.rhtml
stories/all.rb
stories/configuration/stories.rb
stories/helper.rb
stories/steps/people.rb
stories/transactions_should_rollback
stories/transactions_should_rollback.rb
3 changes: 0 additions & 3 deletions vendor/plugins/rspec-rails/README

This file was deleted.

81 changes: 81 additions & 0 deletions vendor/plugins/rspec-rails/README.txt
@@ -0,0 +1,81 @@
= Spec::Rails

* http://rspec.info
* http://rspec.info/rdoc-rails/
* http://github.com/dchelimsky/rspec-rails/wikis
* mailto:rspec-devel@rubyforge.org

== DESCRIPTION:

Behaviour Driven Development for Ruby on Rails.

Spec::Rails (a.k.a. RSpec on Rails) is a Ruby on Rails plugin that allows you
to drive the development of your RoR application using RSpec, a framework that
aims to enable Example Driven Development in Ruby.

== FEATURES:

* Use RSpec to independently specify Rails Models, Views, Controllers and Helpers
* Integrated fixture loading
* Special generators for Resources, Models, Views and Controllers that generate Specs instead of Tests.

== VISION:

For people for whom TDD is a brand new concept, the testing support built into
Ruby on Rails is a huge leap forward. The fact that it is built right in is
fantastic, and Ruby on Rails apps are generally much easier to maintain than
they might have been without such support.

For those of us coming from a history with TDD, and now BDD, the existing
support presents some problems related to dependencies across examples. To
that end, RSpec on Rails supports 4 types of examples. We’ve also built in
first class mocking and stubbing support in order to break dependencies across
these different concerns.

== MORE INFORMATION:

See Spec::Rails::Runner for information about the different kinds of example
groups you can use to spec the different Rails components

See Spec::Rails::Expectations for information about Rails-specific
expectations you can set on responses and models, etc.

== INSTALL

* Visit http://github.com/dchelimsky/rspec-rails/wikis for installation instructions.

== LICENSE

(The MIT License)

====================================================================
==== RSpec, RSpec-Rails
Copyright (c) 2005-2008 The RSpec Development Team
====================================================================
==== ARTS
Copyright (c) 2006 Kevin Clark, Jake Howerton
====================================================================
==== ZenTest
Copyright (c) 2001-2006 Ryan Davis, Eric Hodel, Zen Spider Software
====================================================================
==== AssertSelect
Copyright (c) 2006 Assaf Arkin
====================================================================

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
44 changes: 36 additions & 8 deletions vendor/plugins/rspec-rails/Rakefile
@@ -1,9 +1,37 @@
require 'rake'
require 'rake/rdoctask'

desc 'Generate RDoc'
rd = Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = '../doc/output/rdoc-rails'
rdoc.options << '--title' << 'Spec::Rails' << '--line-numbers' << '--inline-source' << '--main' << 'Spec::Rails'
rdoc.rdoc_files.include('MIT-LICENSE', 'lib/**/*.rb')
require 'rubygems'
require 'hoe'
require './lib/spec/rails/version'

class Hoe
def extra_deps
@extra_deps.reject! { |x| Array(x).first == 'hoe' }
@extra_deps
end
end

Hoe.new('rspec-rails', Spec::Rails::VERSION::STRING) do |p|
p.summary = Spec::Rails::VERSION::SUMMARY
p.url = 'http://rspec.info/'
p.description = "Behaviour Driven Development for Ruby on Rails."
p.rubyforge_name = 'rspec'
p.developer('RSpec Development Team', 'rspec-devel@rubyforge.org')
end

['audit','test','test_deps','default','publish_docs','post_blog', 'release'].each do |task|
Rake.application.instance_variable_get('@tasks').delete(task)
end

task :release => [:clean, :package] do |t|
version = ENV["VERSION"] or abort "Must supply VERSION=x.y.z"
abort "Versions don't match #{version} vs #{Spec::Rails::VERSION::STRING}" unless version == Spec::Rails::VERSION::STRING
pkg = "pkg/rspec-rails-#{version}"

rubyforge = RubyForge.new.configure
puts "Logging in to rubyforge ..."
rubyforge.login

puts "Releasing rspec-rails version #{version} ..."
["#{pkg}.gem", "#{pkg}.tgz"].each do |file|
rubyforge.add_file('rspec', 'rspec', Spec::Rails::VERSION::STRING, file)
end
end

0 comments on commit bc2257a

Please sign in to comment.