Sha256: b87e74014f8772eb96ec61d8bb9c38aac6c5701dc84aa598d8045040951b0405

Contents?: true

Size: 393 Bytes

Versions: 9

Compression:

Stored size: 393 Bytes

Contents

PageModels::Base.send(:include, RSpec::Matchers)

module PageModels
  module RSpecIntegration
    attr_accessor :page_model

    def open_page(page_model)
      self.page_model = page_model
      page_model.open!
    end
    
    def should_see_page(page_model)
      self.page_model = page_model
      page_model.verify!
    end
  end
end

Object.send(:include, PageModels::RSpecIntegration)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pagemodels-0.1.8 lib/page_models/integration/rspec.rb
pagemodels-0.1.7 lib/page_models/integration/rspec.rb
pagemodels-0.1.6 lib/page_models/integration/rspec.rb
pagemodels-0.1.5 lib/page_models/integration/rspec.rb
pagemodels-0.1.4 lib/page_models/integration/rspec.rb
pagemodels-0.1.3 lib/page_models/integration/rspec.rb
pagemodels-0.1.2 lib/page_models/integration/rspec.rb
pagemodels-0.1.1 lib/page_models/integration/rspec.rb
pagemodels-0.1.0 lib/page_models/integration/rspec.rb