Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test class name that should read Without #4477

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions activemodel/test/cases/attribute_methods_test.rb
Expand Up @@ -76,13 +76,13 @@ def attribute(name)
end end
end end


class ModelWithouAttributesMethod class ModelWithoutAttributesMethod
include ActiveModel::AttributeMethods include ActiveModel::AttributeMethods
end end


class AttributeMethodsTest < ActiveModel::TestCase class AttributeMethodsTest < ActiveModel::TestCase
test 'method missing works correctly even if attributes method is not defined' do test 'method missing works correctly even if attributes method is not defined' do
assert_raises(NoMethodError) { ModelWithouAttributesMethod.new.foo } assert_raises(NoMethodError) { ModelWithoutAttributesMethod.new.foo }
end end


test 'unrelated classes should not share attribute method matchers' do test 'unrelated classes should not share attribute method matchers' do
Expand Down