Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

let

  • Loading branch information...
commit 3f1384f00cfa2555ac531bb50a01701fd8ad2797 1 parent 22f086c
Scott Gonyea authored
View
6 spec/metrics-java/lib/metrics-java/meter_spec.rb
@@ -9,18 +9,16 @@ class MeterTest
end
context "DSL" do
+ let(:meter_test) { MeterTest.new }
+
describe '.meter' do
it "should expose instance methods" do
- meter_test = MeterTest.new
-
meter_test.foo_meter.should be_a com.yammer.metrics.core.Meter
end
end
describe '.meters' do
it "should expose instance methods" do
- meter_test = MeterTest.new
-
meter_test.baz_meter.should be_a com.yammer.metrics.core.Meter
meter_test.bar_meter.should be_a com.yammer.metrics.core.Meter
end
View
6 spec/metrics-java/lib/metrics-java/timer_spec.rb
@@ -9,18 +9,16 @@ class TimerTest
end
context "DSL" do
+ let(:timer_test) { TimerTest.new }
+
describe '.timer' do
it "should expose instance methods" do
- timer_test = TimerTest.new
-
timer_test.foo_timer.should be_a com.yammer.metrics.core.Timer
end
end
describe '.timers' do
it "should expose instance methods" do
- timer_test = TimerTest.new
-
timer_test.baz_timer.should be_a com.yammer.metrics.core.Timer
timer_test.bar_timer.should be_a com.yammer.metrics.core.Timer
end
Please sign in to comment.
Something went wrong with that request. Please try again.