Permalink
Browse files

+ current dialogue is displayed on top

  • Loading branch information...
1 parent d4dfaa4 commit 100648cae09a041354d280482663083acc82a0a8 @floere committed May 13, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 james.gemspec
  2. +1 −1 lib/james/visitors.rb
  3. +1 −1 spec/lib/james/visitors_spec.rb
View
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
s.platform = Gem::Platform::CURRENT
s.name = 'james'
- s.version = '0.0.8'
+ s.version = '0.0.9'
s.author = 'Florian Hanke'
s.email = 'florian.hanke+james@gmail.com'
View
@@ -51,7 +51,7 @@ def enter
#
def expects
visitors.inject([]) do |expects, visitor|
- total = expects + visitor.expects
+ total = visitor.expects + expects
break total unless visitor.chainable?
total
end
@@ -50,7 +50,7 @@
first.stub! :expects => [:a, :b], :chainable? => true
second.stub! :expects => [:c, :d, :e], :chainable? => true
end
- it { visitors.expects.should == [:a, :b, :c, :d, :e] }
+ it { visitors.expects.should == [:c, :d, :e, :a, :b] }
end
context 'not chainable' do
before(:each) do

0 comments on commit 100648c

Please sign in to comment.