Skip to content

Commit

Permalink
Clean up specs a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
wasnotrice committed Dec 12, 2013
1 parent 3c6620d commit 181f6e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion spec/swt_shoes/arc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
describe Shoes::Swt::Arc do
include_context "swt app"

let(:paint_container) { swt_app }
let(:left) { 100 }
let(:top) { 200 }
let(:width) { 300 }
Expand Down
8 changes: 4 additions & 4 deletions spec/swt_shoes/shared_examples/clearable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
end

it "should remove paint listener" do
subject.app.should_receive(:remove_paint_listener)
subject.app.should_receive(:remove_listener).at_least(2).times
swt_app.should_receive(:remove_paint_listener)
swt_app.should_receive(:remove_listener).at_least(2).times
subject.clear
end
end
Expand All @@ -16,14 +16,14 @@
end

it "should dispose real when real is not disposed" do
subject.app.stub(:remove_listener)
swt_app.stub(:remove_listener)
real.stub(:disposed?) { false }
real.should_receive(:dispose)
subject.clear
end

it "should not dispose real when real is already disposed" do
subject.app.stub(:remove_listener)
swt_app.stub(:remove_listener)
real.stub(:disposed?) { true }
real.should_not_receive(:dispose)
subject.clear
Expand Down

0 comments on commit 181f6e1

Please sign in to comment.