spec/symbiont/factory_spec.rb in symbiont-0.8.0 vs spec/symbiont/factory_spec.rb in symbiont-0.9.0
- old
+ new
@@ -55,9 +55,12 @@
it 'will set a reference to be used outside the factory' do
page = @factory.on ValidPage
current = @factory.instance_variable_get '@page'
expect(current).to be(page)
+
+ current = @factory.instance_variable_get '@model'
+ expect(current).to be(page)
end
it 'will use an existing object reference with on_set' do
expect(@factory.browser).to receive(:goto)
obj1 = @factory.on_view ValidPage