Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Also includes `refute` assertions

  • Loading branch information...
commit c352b3b4162c032b80271125f158f79e1406f39f 1 parent 3015cc8
@alindeman alindeman authored
View
2  lib/rspec/rails/adapters.rb
@@ -130,7 +130,7 @@ module ClassMethods
# examples without exposing non-assertion methods in Test::Unit or
# Minitest.
def assertion_method_names
- ::RSpec::Rails::Assertions.public_instance_methods.select{|m| m.to_s =~ /^(assert|flunk)/} +
+ ::RSpec::Rails::Assertions.public_instance_methods.select{|m| m.to_s =~ /^(assert|flunk|refute)/} +
[:build_message]
end
View
2  spec/rspec/rails/assertion_adapter_spec.rb
@@ -3,7 +3,7 @@
describe RSpec::Rails::TestUnitAssertionAdapter do
include RSpec::Rails::TestUnitAssertionAdapter
- RSpec::Rails::Assertions.public_instance_methods.select{|m| m.to_s =~ /^(assert|flunk)/}.each do |m|
+ RSpec::Rails::Assertions.public_instance_methods.select{|m| m.to_s =~ /^(assert|flunk|refute)/}.each do |m|
if m.to_s == "assert_equal"
it "exposes #{m} to host examples" do
assert_equal 3,3

4 comments on commit c352b3b

@dchelimsky
Owner

Shouldn't they be called "refutions"?

@samphippen
Collaborator

refutations surely?

@dchelimsky
Owner

Only if we call their opposites assertations

@alindeman
Collaborator

Hahaha, you're probably right. I wasn't even thinking about it at the time.

Please sign in to comment.
Something went wrong with that request. Please try again.