Skip to content

Commit 93bc8fc

Browse files
committed
Allow methods to be used once gem has been install.
1 parent 19090a3 commit 93bc8fc

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

lib/rails-controller-testing.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'active_support/concern'
2+
13
module Rails
24
module Controller
35
module Testing
@@ -13,3 +15,9 @@ module Testing
1315
end
1416
end
1517
end
18+
19+
module ActiveSupport
20+
class TestCase
21+
include Rails::Controller::Testing
22+
end
23+
end

lib/rails/controller/testing/template_assertions.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'active_support/concern'
2+
13
module Rails
24
module Controller
35
module Testing

rails-controller-testing-0.0.2.gem

3.5 KB
Binary file not shown.

rails-controller-testing.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
1515

1616
s.files = Dir["{lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
1717
s.test_files = Dir["test/**/*"]
18+
s.require_path = ['lib']
1819

1920
s.add_dependency "rails", ">= 4.2.0.beta"
2021

0 commit comments

Comments
 (0)