Sha256: 09ab5fface8e852c64d3c08f58c3e9164a246635d2a35c1010b85ea4eff49f5a
Contents?: true
Size: 998 Bytes
Versions: 2
Compression:
Stored size: 998 Bytes
Contents
require 'formulaic' module SpecHelper def input(model, field) page.find("##{model}_#{field}") end 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 def load_translations I18n.backend.store_translations(:en, YAML.load(<<-TRANSLATIONS)) simple_form: labels: user: age: Age avatar: Avatar awesome: Are you awesome? bio: Biography date_of_birth: Date of birth email: Email name: Display name new: password: Password phone: Phone Number terms_of_service: I agree to the Terms of Service url: Website TRANSLATIONS end end RSpec.configure do |c| c.include SpecHelper end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
formulaic-0.1.1 | spec/spec_helper.rb |
formulaic-0.1.0 | spec/spec_helper.rb |