Permalink
Browse files

. more specs

  • Loading branch information...
1 parent 59fb4fc commit 885c15b613b47fcc4ef7eb2ff908b6d588463e92 @kschiess committed May 22, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 spec/acceptance/floor_manager_spec.rb
@@ -210,14 +210,21 @@ class Bar < Spy
any :bar do
name 'bar'
end
+ one :my_bar, class: 'Bar' do
+ name 'baz'
+ end
end
FloorManager.get(:any)
}
let(:bar) { env.bar }
+ let(:my_bar) { env.my_bar }
it "should construct an instance of Foo::Bar" do
bar.should be_a(Foo::Bar)
end
+ it "should also work in 'one'" do
+ my_bar.should be_a(Foo::Bar)
+ end
end
end

0 comments on commit 885c15b

Please sign in to comment.