Skip to content

Commit

Permalink
Move into the Matchers namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Jan 19, 2011
1 parent edaa699 commit c482786
Show file tree
Hide file tree
Showing 94 changed files with 2,577 additions and 2,518 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -7,7 +7,7 @@ require 'rspec/core/rake_task'
require 'cucumber/rake/task'

$LOAD_PATH.unshift("lib")
require 'shoulda/version'
require 'shoulda/matchers/version'

Rake::RDocTask.new { |rdoc|
rdoc.rdoc_dir = 'doc'
Expand All @@ -31,7 +31,7 @@ RSpec::Core::RakeTask.new(:coverage) do |t|
t.pattern = "spec/**/*_spec.rb"
end

eval("$specification = begin; #{IO.read('shoulda.gemspec')}; end")
eval("$specification = begin; #{IO.read('shoulda-matchers.gemspec')}; end")
Rake::GemPackageTask.new $specification do |pkg|
pkg.need_tar = true
pkg.need_zip = true
Expand Down
4 changes: 2 additions & 2 deletions features/rails_integration.feature
Expand Up @@ -33,7 +33,7 @@ Feature: integrate with Rails

Scenario: generate a rails application and use matchers in Test::Unit
When I configure the application to use shoulda-context
And I configure the application to use "shoulda" from this project
And I configure the application to use "shoulda-matchers" from this project
And I write to "test/unit/user_test.rb" with:
"""
require 'test_helper'
Expand Down Expand Up @@ -63,7 +63,7 @@ Feature: integrate with Rails

Scenario: generate a rails application and use matchers in Rspec
When I configure the application to use rspec-rails
And I configure the application to use "shoulda" from this project
And I configure the application to use "shoulda-matchers" from this project
And I run the rspec generator
And I write to "spec/models/user_spec.rb" with:
"""
Expand Down
8 changes: 8 additions & 0 deletions lib/shoulda-matchers.rb
@@ -0,0 +1,8 @@
require 'shoulda/matchers/version'

if defined?(RSpec)
require 'shoulda/matchers/integrations/rspec'
else
require 'shoulda/matchers/integrations/test_unit'
end

8 changes: 0 additions & 8 deletions lib/shoulda.rb

This file was deleted.

36 changes: 0 additions & 36 deletions lib/shoulda/action_controller.rb

This file was deleted.

112 changes: 0 additions & 112 deletions lib/shoulda/action_controller/assign_to_matcher.rb

This file was deleted.

48 changes: 0 additions & 48 deletions lib/shoulda/action_controller/filter_param_matcher.rb

This file was deleted.

60 changes: 0 additions & 60 deletions lib/shoulda/action_controller/redirect_to_matcher.rb

This file was deleted.

52 changes: 0 additions & 52 deletions lib/shoulda/action_controller/render_template_matcher.rb

This file was deleted.

0 comments on commit c482786

Please sign in to comment.