spec/runner/formatters/method_spec.rb in mspec-1.7.0 vs spec/runner/formatters/method_spec.rb in mspec-1.8.0
- old
+ new
@@ -24,11 +24,11 @@
end
describe MethodFormatter, "#before" do
before :each do
@formatter = MethodFormatter.new
- MSpec.stub!(:register)
+ MSpec.stub(:register)
@formatter.register
end
it "resets the tally counters to 0" do
@formatter.tally.counter.examples = 3
@@ -92,11 +92,11 @@
end
describe MethodFormatter, "#after" do
before :each do
@formatter = MethodFormatter.new
- MSpec.stub!(:register)
+ MSpec.stub(:register)
@formatter.register
end
it "sets the tally counts" do
state = ExampleState.new ContextState.new("Some#method"), "it"
@@ -136,10 +136,10 @@
before :each do
$stdout = IOStub.new
context = ContextState.new "Class#method"
@state = ExampleState.new(context, "runs")
@formatter = MethodFormatter.new
- MSpec.stub!(:register)
+ MSpec.stub(:register)
@formatter.register
end
after :each do
$stdout = STDOUT