Skip to content

Commit

Permalink
use the new subject syntax
Browse files Browse the repository at this point in the history
I just guessed at this — it was getting a no method error without this
change
  • Loading branch information
seanlinsley committed Jul 4, 2016
1 parent 88963fc commit 90bb1b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/dummy/test/decorators/minitest/view_context_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def it_does_not_leak_view_context
end

describe "A controller test" do
tests Class.new(ActionController::Base)
subject{ Class.new(ActionController::Base) }

it_does_not_leak_view_context
end
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/test/decorators/test_unit/view_context_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class DecoratorTest < Draper::TestCase
end

class ControllerTest < ActionController::TestCase
tests Class.new(ActionController::Base)
subject{ Class.new(ActionController::Base) }

it_does_not_leak_view_context
end
Expand Down

0 comments on commit 90bb1b4

Please sign in to comment.