spec/factory_spec.rb in fluent-0.3.0 vs spec/factory_spec.rb in fluent-0.4.0

- old
+ new

@@ -2,11 +2,11 @@ require 'mock_app' class TestFactory include Fluent::Factory - attr_accessor :browser + attr_accessor :driver end class DefinitionTest include Fluent @@ -14,22 +14,22 @@ end describe Fluent::Factory do before(:each) do @factory = TestFactory.new - @factory.browser = mock_browser_for_watir + @factory.driver = mock_browser_for_watir end it 'should create a new definition object and view it, using on_view' do - @factory.browser.should_receive(:goto) + @factory.driver.should_receive(:goto) @factory.on_view DefinitionTest do |page| page.should be_instance_of DefinitionTest end end it 'should create a new definition object, using on' do - @factory.browser.should_not_receive(:goto) + @factory.driver.should_not_receive(:goto) @factory.on DefinitionTest do |page| page.should be_instance_of DefinitionTest end end @@ -38,10 +38,10 @@ current = @factory.instance_variable_get '@active' current.should === active end it 'should create a new definition based on a string' do - @factory.browser.should_receive(:goto) + @factory.driver.should_receive(:goto) @factory.on_view "DefinitionTest" do |page| page.should be_instance_of DefinitionTest end end \ No newline at end of file