37 lines
1.9 KiB
Diff
37 lines
1.9 KiB
Diff
Only in rspec-expectations-2.14.5: LOGLOG
|
|
diff -urp rspec-expectations-2.14.5.orig/spec/rspec/expectations/expectation_target_spec.rb rspec-expectations-2.14.5/spec/rspec/expectations/expectation_target_spec.rb
|
|
--- rspec-expectations-2.14.5.orig/spec/rspec/expectations/expectation_target_spec.rb 2017-02-17 19:28:23.271247469 +0900
|
|
+++ rspec-expectations-2.14.5/spec/rspec/expectations/expectation_target_spec.rb 2017-02-17 19:38:18.189674292 +0900
|
|
@@ -51,14 +51,14 @@ module RSpec
|
|
end
|
|
|
|
it 'fails an invalid negative expectation' do
|
|
- message = /expected 5 not to be a kind of Fixnum/
|
|
+ message = /expected 5 not to be a kind of Integer/
|
|
expect {
|
|
expect(5).not_to be_a(Fixnum)
|
|
}.to fail_with(message)
|
|
end
|
|
|
|
it 'fails an invalid negative expectation with a split infinitive' do
|
|
- message = /expected 5 not to be a kind of Fixnum/
|
|
+ message = /expected 5 not to be a kind of Integer/
|
|
expect {
|
|
expect(5).to_not be_a(Fixnum)
|
|
}.to fail_with(message)
|
|
diff -urp rspec-expectations-2.14.5.orig/spec/rspec/matchers/be_instance_of_spec.rb rspec-expectations-2.14.5/spec/rspec/matchers/be_instance_of_spec.rb
|
|
--- rspec-expectations-2.14.5.orig/spec/rspec/matchers/be_instance_of_spec.rb 2017-02-17 19:28:23.271247469 +0900
|
|
+++ rspec-expectations-2.14.5/spec/rspec/matchers/be_instance_of_spec.rb 2017-02-17 19:37:41.285523750 +0900
|
|
@@ -25,9 +25,9 @@ module RSpec
|
|
end
|
|
|
|
it "provides a description" do
|
|
- matcher = be_an_instance_of(Fixnum)
|
|
+ matcher = be_an_instance_of(Integer)
|
|
matcher.matches?(Numeric)
|
|
- expect(matcher.description).to eq "be an instance of Fixnum"
|
|
+ expect(matcher.description).to eq "be an instance of Integer"
|
|
end
|
|
|
|
context "when expected provides an expanded inspect, e.g. AR::Base" do
|