Skip to content

Commit

Permalink
. more specs
Browse files Browse the repository at this point in the history
  • Loading branch information
kschiess committed May 22, 2012
1 parent 59fb4fc commit 885c15b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/acceptance/floor_manager_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -210,14 +210,21 @@ class Bar < Spy
any :bar do any :bar do
name 'bar' name 'bar'
end end
one :my_bar, class: 'Bar' do
name 'baz'
end
end end


FloorManager.get(:any) FloorManager.get(:any)
} }
let(:bar) { env.bar } let(:bar) { env.bar }
let(:my_bar) { env.my_bar }


it "should construct an instance of Foo::Bar" do it "should construct an instance of Foo::Bar" do
bar.should be_a(Foo::Bar) bar.should be_a(Foo::Bar)
end end
it "should also work in 'one'" do
my_bar.should be_a(Foo::Bar)
end
end end
end end

0 comments on commit 885c15b

Please sign in to comment.