Skip to content

Commit

Permalink
require 'rspec/core' from trans db support file
Browse files Browse the repository at this point in the history
  • Loading branch information
David Chelimsky committed Jan 23, 2010
1 parent 9569381 commit 929c4e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
11 changes: 0 additions & 11 deletions lib/rspec/rails/example/controller_example_group.rb
Expand Up @@ -25,14 +25,3 @@ def #{method}(action)
c.include self, :behaviour => { :describes => lambda {|c| c < ::ActionController::Base} }
end
end


# describe WidgetsController do
# context "GET index" do
# it "does something" do
# get :index
# response.body.should == "this text"
# end
# end
# end

15 changes: 1 addition & 14 deletions lib/rspec/rails/example/request_example_group.rb
Expand Up @@ -21,19 +21,6 @@ def last_response
end

Rspec::Core.configure do |c|
c.include self
# , :behaviour => { :describes => /^\// }
c.include self, :behaviour => { :describes => /^\// }
end
end

# describe "/widgets" do
# context "GET index" do
# it "does something" do
# visit widgets_path
# response.body.should == "this text"
# response.should contain("this text")
# response.should have_selector('p:contains("that")')
# end
# end
# end

2 changes: 2 additions & 0 deletions lib/rspec/rails/transactional_database_support.rb
@@ -1,3 +1,5 @@
require 'rspec/core'

module Rspec
module Rails
module TransactionalDatabaseSupport
Expand Down

0 comments on commit 929c4e7

Please sign in to comment.