Sha256: 82c640428942cc0dff712ded929b837fe31454a9c885e2c2fcb1e340c4cf3e2f

Contents?: true

Size: 629 Bytes

Versions: 4

Compression:

Stored size: 629 Bytes

Contents

require 'coveralls'
Coveralls.wear!

require 'capybara/dsl'
require 'tedium'
require 'pry'

require 'active_support/core_ext/object/blank'
require 'action_view/record_identifier'
require 'active_model'

class Project < Struct.new(:id)
  extend ActiveModel::Naming
  include ActiveModel::Conversion
end

module SpecHelper
  def visit(page_name)
    page.visit("/#{page_name}.html")
  end

  def page
    @page ||= begin
                Capybara.app = Rack::File.new(File.expand_path('../fixtures', __FILE__))
                Capybara.current_session
              end
  end
end

RSpec.configure do |c|
  c.include SpecHelper
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tedium-0.0.5 spec/spec_helper.rb
tedium-0.0.4 spec/spec_helper.rb
tedium-0.0.3 spec/spec_helper.rb
tedium-0.0.2 spec/spec_helper.rb