diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-02-15 10:02:30 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-02-15 10:02:30 +0000 |
commit | dcc312ac215b57afc648725bb8d64ff287bf7798 (patch) | |
tree | c22365bae12a7ba7c60dbb31dd88dc3e16a214fc /vendor/gems/rspec-rails-1.3.3/spec/autotest | |
parent | 506af7a640f63b17000ccfc5e1344bbc3039c913 (diff) |
Merge jpmckinney/bundler
Diffstat (limited to 'vendor/gems/rspec-rails-1.3.3/spec/autotest')
-rw-r--r-- | vendor/gems/rspec-rails-1.3.3/spec/autotest/mappings_spec.rb | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/vendor/gems/rspec-rails-1.3.3/spec/autotest/mappings_spec.rb b/vendor/gems/rspec-rails-1.3.3/spec/autotest/mappings_spec.rb deleted file mode 100644 index 1e0ec738d..000000000 --- a/vendor/gems/rspec-rails-1.3.3/spec/autotest/mappings_spec.rb +++ /dev/null @@ -1,86 +0,0 @@ -require 'spec_helper' -require File.dirname(__FILE__) + '/../../lib/autotest/rails_rspec' -require File.dirname(__FILE__) + '/../../../rspec/spec/autotest/autotest_matchers' - -describe Autotest::RailsRspec, "file mapping" do - before(:each) do - @autotest = Autotest::RailsRspec.new - @autotest.hook :initialize - end - - it "should map model example to model" do - @autotest.should map_specs(['spec/models/thing_spec.rb']). - to('app/models/thing.rb') - end - - it "should map controller example to controller" do - @autotest.should map_specs(['spec/controllers/things_controller_spec.rb']). - to('app/controllers/things_controller.rb') - end - - it "should map view.rhtml" do - @autotest.should map_specs(['spec/views/things/index.rhtml_spec.rb']). - to('app/views/things/index.rhtml') - end - - it "should map view.rhtml with underscores in example filename" do - @autotest.should map_specs(['spec/views/things/index_rhtml_spec.rb']). - to('app/views/things/index.rhtml') - end - - it "should map view.html.erb" do - @autotest.should map_specs(['spec/views/things/index.html.erb_spec.rb']). - to('app/views/things/index.html.erb') - end - - describe "between routes.rb and things which depend on routes" do - it "should map routes.rb to controllers" do - @autotest.should map_specs(['spec/controllers/things_controller_spec.rb']). - to('config/routes.rb') - end - - it "should map routes.rb to views" do - @autotest.should map_specs(['spec/views/things/action.html.erb_spec.rb']). - to('config/routes.rb') - end - - it "should map routes.rb to helpers" do - @autotest.should map_specs(['spec/helpers/things_helper_spec.rb']). - to('config/routes.rb') - end - - it "should map routing example to routes" do - @autotest.should map_specs(['spec/routing/thing_spec.rb']). - to('config/routes.rb') - end - end - - describe "between the config and specs" do - ['spec/controllers/things_controller_spec.rb', - 'spec/views/things/action.html.erb_spec.rb', - 'spec/helpers/things_helper_spec.rb', - 'spec/routing/thing_spec.rb', - 'spec/models/thing_spec.rb'].each do |file_path| - - it "should map environment.rb to #{file_path}" do - @autotest.should map_specs([file_path]). - to('config/environment.rb') - end - - it "should map environments/test.rb to #{file_path}" do - @autotest.should map_specs([file_path]). - to('config/environments/test.rb') - end - - it "should map boot.rb to #{file_path}" do - @autotest.should map_specs([file_path]). - to('config/boot.rb') - end - - it "should map spec_helper.rb to #{file_path}" do - @autotest.should map_specs([file_path]). - to('spec/spec_helper.rb') - end - end - end -end |